Skip to content

side-effects of iterating #18

@kermanx

Description

@kermanx

The following 4 lines can have different results:

// Assuming that both a and b are unused.
const [a, b] = unknown;
const [ , ,] = unknown;
const [] = unknown;
unknown;

It's not hard to optimize the first line into any of these 3 lines. The problem is how to design the options.

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