3 ms·
The subtext is jealousy of JavaScript object creation/destructing, it's the thing I like most about JavaScript I think, really makes your code feel fluid. I cou
by zimablue 9y ago
The subtext is jealousy of JavaScript object creation/destructing, it's the thing I like most about JavaScript I think, really makes your code feel fluid. I couldn't tell you what they preserve order though. There's even precompiler extensions to destructure immutable.js Maps.
- alexchamberlain 9y agoCould you expand on the syntax you're referring to?
- zimablue 9y agoNot well but here is a link, the object destructing section https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...
- terragon 9y agoSeconded. When using JavaScript Es6, I really love how object and array destructuring, spread operator and default values work together to make my code so dense.