mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Update es5.d.ts (#45454)
* Update es5.d.ts Fix grammar error. * Update src/lib/es5.d.ts * Update src/lib/es5.d.ts Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
This commit is contained in:
parent
9f025b90a4
commit
1dc1efbc4f
2
src/lib/es5.d.ts
vendored
2
src/lib/es5.d.ts
vendored
@ -1261,7 +1261,7 @@ interface Array<T> {
|
||||
* Sorts an array in place.
|
||||
* This method mutates the array and returns a reference to the same array.
|
||||
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
||||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||
* ```ts
|
||||
* [11,2,22,1].sort((a, b) => a - b)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user