creating an object with array deconstruct code example
Example 1: destructure to object
({x: oof.x, y: oof.y} = foo);
Example 2: js object destructuring
const { [propName]: identifier } = expression;
({x: oof.x, y: oof.y} = foo);
const { [propName]: identifier } = expression;