1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/js/array_comprehensions.js

24 lines
No EOL
511 B
JavaScript

(function(){
var __a, __b, __c, __d, __e, __f, food, i, lunch, row;
// Eat lunch.
lunch = (function() {
__a = ['toast', 'cheese', 'wine'];
__c = [];
for (__b in __a) {
if (__a.hasOwnProperty(__b)) {
food = __a[__b];
__d = this.eat(food);
__c.push(__d);
}
}
return __c;
})();
// Zebra-stripe a table.
__e = table;
for (i in __e) {
if (__e.hasOwnProperty(i)) {
row = __e[i];
i % 2 === 0 ? highlight(row) : null;
}
}
})();