Destructuring on nested object? 🤔
Destructuring is commonly used, but do you know how to do destructuring nested object and array?
Can you refactor this?
Sandbox below to try it by yourself 👇
The code taken from MDN: Destructuring assignment - JavaScript | MDN
Use nested object and array destructuring 👍
Reference
Destructuring assignment - JavaScript | MDN
CodeSandbox
Top comments (0)