We're a place where coders share, stay up-to-date and grow their careers.
It is pretty useful in deconstructing too.
const a = { name: 'Maria', sureName: 'Smith', age: 22 } const {name, ...rest} = a console.log(name) // output: 'Maria' console.log(rest) //output: {sureName: 'Smith', age: 22}
Wow, thanks a lot
It is pretty useful in deconstructing too.
Wow, thanks a lot