Object Destructuring Javascript

Object destructuring is a new way to extract elements from an object or an array.

Destructuring is a JavaScript expression that allows us to extract data from arrays, objects, and maps and set them into new, distinct variables. Destructuring allows us to extract multiple properties, or items, from an array at a time.

 

Leave a Reply

Your email address will not be published.