Object Destructuring: Deep Destructuring, and Collisions

Understand the concepts of deep destructuring, dealing with collisions, and extracting into existing variables using object destructuring.

Deep destructuring

In the previous lessons on object destructuring, we extracted the top-level properties of objects. The destructuring syntax makes it easy to extract properties in lower levels and even embedded objects.

Let’s extract the street property of the address embedded object in sam.

Get hands-on with 1400+ tech skills courses.