155 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