DEV Community

Discussion on: 3 Powerful Examples of Destructuring Assignment

Collapse
 
michi profile image
Michael Z

There is one more use case to destruct dynamically. Also resting!

let { [key]: id = 0, ...rest } = obj

I have written an article on it here: dev.to/mzanggl/let--key-id--0-rest...

Collapse
 
laurieontech profile image
Laurie

Awesome!