initialize while destructuring in javascript code example
Example 1: how to use object destructuring to spread part of an object into another
how to use object destructuring to spread part of an object into another
Example 2: destructure array javascript
var [first, second, ...rest] = ["Mercury", "Earth", ...planets, "Saturn"];