mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
documentation waypoint
This commit is contained in:
parent
dcc70e5ab0
commit
c7fa9c320a
42 changed files with 1026 additions and 53 deletions
16
documentation/js/array_comprehensions.js
Normal file
16
documentation/js/array_comprehensions.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
(function(){
|
||||
var lunch;
|
||||
var a = ['toast', 'cheese', 'wine'];
|
||||
var d = [];
|
||||
for (var b=0, c=a.length; b<c; b++) {
|
||||
var food = a[b];
|
||||
d[b] = food.eat();
|
||||
}
|
||||
lunch = d;
|
||||
var e = table;
|
||||
for (var f=0, g=e.length; f<g; f++) {
|
||||
var row = e[f];
|
||||
var i = f;
|
||||
i % 2 === 0 ? highlight(row) : null;
|
||||
}
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue