Skip to content

Support change-array-by-copy tc39 proposal #50333

Closed

Description

Suggestion

Support https://github.com/tc39/proposal-change-array-by-copy (stage 3 proposal).

Adding

    Array.prototype.toReversed() -> Array
    Array.prototype.toSorted(compareFn) -> Array
    Array.prototype.toSpliced(start, deleteCount, ...items) -> Array
    Array.prototype.with(index, value) -> Array


    TypedArray.prototype.toReversed() -> TypedArray
    TypedArray.prototype.toSorted(compareFn) -> TypedArray
    TypedArray.prototype.with(index, value) -> TypedArray

Activity

  1. added
    Suggestion
    Committed
    Domain: lib.d.ts
    on Aug 17, 2022
  2. robpalme commented on Jan 31, 2023

    @robpalme

    This proposal went to Stage 4 yesterday. It looks like there's already a PR in progress. Please say if further help is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CommittedDomain: lib.d.tsSuggestion

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions