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

August 2019
M T W T F S S
« Jul    
 1234
567891011
12131415161718
19202122232425
262728293031