Destructuring assignment is a special syntax introduced in ES6, for neatly assigning values taken directly from an object.





Destructuring allows you to assign a new variable name when extracting values. You can do this by putting the new name after a colon when assigning the value.

One key difference between the spread operator and array destructuring is that the spread operator unpacks all contents of an array into a comma-separated list. you cannot pick or choose which elements you want to assign to variables.






The end of this thread. 
Thank you for your time, I hope you found it useful.

Thank you for your time, I hope you found it useful.
