Given the following example, why can't I use a combination of spread with deconstructing assignment?
let myObj = {
one: 1,
two: 2,
three: 3,
}
let {...Object.keys(myObj)} = myObj;
console.log(one);
Desired result: 1
Actual result: Uncaught SyntaxError: Unexpected token ...
EDIT: Breaking out the above so that the function execution is separate makes no difference:
let obj2Array = Object.keys(myObj);
let {...obj2Array} = myObj;
Still results in SyntaxError: Unexpected token ...