Re:Destructuring and Recursion in ES6
by drapper on Monday February 02, 2015 @12:45PM
(#8985467)
Don't want to come off overly bitter, it's certainly interesting, but I'd like to see some practical uses of this, besides reimplementation of map() and other "low-level" functions...
[ Parent
| on HN ]
Re:Destructuring and Recursion in ES6
by dukerutledge on Monday February 02, 2015 @01:35PM
(#8985819)
How about multi value return from functions.
``` x = foo(); oh = x[0]; no = x[1]; ```
vs
``` [oh, yeah] = foo() ```