Skip to content

Add support for aliases in destructuring #813

Description

@petermasking

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions