Please see this minimum example
const [one, two, three] = [
{ name: "Joseph" },
{ name: "Amy" },
{ name: "Jim" }
];
I can array deconstruct first level, how can I do it with second level like this:
const [oneName: one.name, twoName: two.name, threeName: three.name] = [
{ name: "Joseph" },
{ name: "Amy" },
{ name: "Jim" }
];
It's pseudocode, the syntax is wrong, but you get the idea.
Is it possible to do this in JavaScript?