Understanding Destructuring in JavaScript
When working with objects and arrays in JavaScript, you often need to extract values.
Normally, you do it like this:
const user = {
name: "Ishan",
age: 21
}
const name = user.name
const age = use
understanding-javascript-methods.hashnode.dev3 min read