Sep 4, 2018 · 1 min read
It is supported but it is a bit ugly. You can use this syntax that do destructuring into object.
const foo = { x: 2, y: 5 };
const oof = {};
({x: oof.x, y: oof.y} = foo);
It is supported but it is a bit ugly. You can use this syntax that do destructuring into object.
const foo = { x: 2, y: 5 };
const oof = {};
({x: oof.x, y: oof.y} = foo);