Skip to content

Improve tsdoc for sort() #63760

Description

@advinans-dennis

⚙ Compilation target

es2021

⚙ Library

es5.d.ts

Missing / Incorrect Definition

Change line 1374 from:

     * [11,2,22,1].sort((a, b) => a - b)

to:

     * [11,2,22,1].sort((a, b) => a - b)
     * returns:
     *     [1, 2, 11, 22]

Sample Code

N/A

Documentation Link

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Not a DefectThis behavior is one of several equally-correct options

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions