Currently, we support simple destructuring of arrays and objects:
const [ a, b = 42, ...others ] = myArray;
const { a, b = 42, ...others } = myObject;
However, aliases are not yet supported:
const [ a, b: c, ...others ] = myArray;
const { a, b: c, ...others } = myObject;
This issue is about adding support for destructuring aliases in both arrays and objects.
Currently, we support simple destructuring of arrays and objects:
However, aliases are not yet supported:
This issue is about adding support for destructuring aliases in both arrays and objects.