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

July 2018
M T W T F S S
« Jun    
 1
2345678
9101112131415
16171819202122
23242526272829
3031