jashkenas--coffeescript/documentation/examples/array_spread.coffee

5 lines
127 B
CoffeeScript

popular = ['pepperoni', 'sausage', 'cheese']
unwanted = ['anchovies', 'olives']
all = [popular..., unwanted..., 'mushrooms']