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:
Tim 2021-08-27 08:10:25 +02:00 committed by GitHub
parent 9f025b90a4
commit 1dc1efbc4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
src/lib/es5.d.ts vendored
View File

@ -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)