how to destructor array of objects code example
Example 1: unpack array into variables javascript
var yourArr = [1, 2, 3]
[one, , three] = yourArray // 2 is ignored
// one == 1 && three == 3
Example 2: destructure to object
({x: oof.x, y: oof.y} = foo);