Skip to content

Destructuring proposal #1973

Description

@Karbashevskyi

const [name, ver = '*'] = unitName.split('.');

Remember the words of the great Demi Murich that using this kind of destructuring generates two A4 sheets of code bytes. Suggestion:

const {0: name, 1: ver = '*'} = unitName.split('.');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions