Files
coffeescript/documentation/coffee/array_comprehensions.coffee

5 lines
150 B
CoffeeScript

# Eat lunch.
lunch: this.eat(food) for food in ['toast', 'cheese', 'wine']
# Zebra-stripe a table.
highlight(row) for row, i in table when i % 2 is 0