Skip to content

What does indexing into an object with the proposed slice notation do #9

@benderTheCrime

Description

@benderTheCrime

Example:


// Create an "arguments"-like object here, but any Object will do.
const obj = {
    1: 'foo',
    2: 'bar',
};

const bar = obj[:2];

Should this be considered a syntax error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions