Features Of ES6 Part 6: Destructuring

added by JavaScript Kicks
9/12/2014 2:06:53 PM

47 Views

To destructure an object is to dismantle or tear apart an object. In ES6, a destructuring assignment allows us to tear apart an array or object into individual pieces that we can assign to variables. The square brackets [ and ] are used to destructure an array, while { and } will destructure an object.


0 comments