Posts Tagged ‘coffeescript

21Mar

Coffeescript deconstruction of arrays

Posted by Elf Sternberg as javascript

Most people who’ve been using Coffeescript for the past year are probably aware by now of argument deconstruction for objects. ┬áThis is a nifty feature of Coffeescript that lets us take this: myfunc = (options) -> @foo = options.foo @bar = options.bar … And instead say this: myfunc = ({@foo, @bar}) -> … In both […]


Subscribe to Feed

Categories

Calendar

June 2019
M T W T F S S
« May    
 12
3456789
10111213141516
17181920212223
24252627282930