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

January 2018
M T W T F S S
« Nov    
1234567
891011121314
15161718192021
22232425262728
293031