Skip to content

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

Closed
@entropitor

Description

@entropitor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CommittedThe team has roadmapped this issueDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do thisSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions