3 ms·
Well, lucky for you in Javascript 1.7: https://developer.mozilla.org/en/New_in_JavaScript_1.7#Destructuring_assignment_(Merge_into_own_page.2Fsection) https://d
by tmcw 15y ago
Well, lucky for you in Javascript 1.7: https://developer.mozilla.org/en/New_in_JavaScript_1.7#Destructuring_assignment_(Merge_into_own_page.2Fsection) https://developer.mozilla.org/en/New_in_JavaScript_1.7#Destr...
(though I kinda feel like panning syntax sugar as 'useless' is a little useless. What, are we going to count chars as a scientific comparison?)
- magicalist 15y agoeven more excitingly, destructuring has been moved into the draft ECMAScript 6 spec: http://wiki.ecmascript.org/doku.php?id=harmony:destructuring http://wiki.ecmascript.org/doku.php?id=harmony:destructuring