By mswatcher
via 2ality.com
Submitted: Mar 01 2013 / 11:39
ECMAScript 6 allows you to destructure: the target of an assigment can be a pattern that allows you to look into the source of the assignment and assign to variables what you find there. The following is an example of destructuring used in a variable declaration
Add your comment