Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

item() proposal does not substitute this proposal #32

@drpicox

Description

@drpicox

Although it seems that:

const last = array.lastItem;
const last = array.item(-1);

both are equivalent, they are not:

array.lastItem = newValue;
array.item(-1) = newValue; // it does not make sense

the assignation is not part of the .item() proposal.

I have seen in the issues of this proposal interesting alternatives like:

See tc39/proposal-relative-indexing-method#16 for the mirroring of this issue.

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