Skip to content

Commit 5d0d7ae

Browse files
author
John McEntee
authored
fix(45876): Remove "ascii character" order from docs for Float64Array.sort (#45883)
* fix(45876): Do not specify ascii chracter order in docs for Float64Array.sort() when compareFn is omitted. * fix(45876): Do not specify ascii chracter order in docs for any TypedArray.sort() when compareFn is omitted.
1 parent 8a2f5b2 commit 5d0d7ae

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/lib/es5.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ interface Int8Array {
20062006
* Sorts an array.
20072007
* @param compareFn Function used to determine the order of the elements. It is expected to return
20082008
* a negative value if first argument is less than second argument, zero if they're equal and a positive
2009-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
2009+
* value otherwise. If omitted, the elements are sorted in ascending order.
20102010
* ```ts
20112011
* [11,2,22,1].sort((a, b) => a - b)
20122012
* ```
@@ -2288,7 +2288,7 @@ interface Uint8Array {
22882288
* Sorts an array.
22892289
* @param compareFn Function used to determine the order of the elements. It is expected to return
22902290
* a negative value if first argument is less than second argument, zero if they're equal and a positive
2291-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
2291+
* value otherwise. If omitted, the elements are sorted in ascending order.
22922292
* ```ts
22932293
* [11,2,22,1].sort((a, b) => a - b)
22942294
* ```
@@ -2570,7 +2570,7 @@ interface Uint8ClampedArray {
25702570
* Sorts an array.
25712571
* @param compareFn Function used to determine the order of the elements. It is expected to return
25722572
* a negative value if first argument is less than second argument, zero if they're equal and a positive
2573-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
2573+
* value otherwise. If omitted, the elements are sorted in ascending order.
25742574
* ```ts
25752575
* [11,2,22,1].sort((a, b) => a - b)
25762576
* ```
@@ -2850,7 +2850,7 @@ interface Int16Array {
28502850
* Sorts an array.
28512851
* @param compareFn Function used to determine the order of the elements. It is expected to return
28522852
* a negative value if first argument is less than second argument, zero if they're equal and a positive
2853-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
2853+
* value otherwise. If omitted, the elements are sorted in ascending order.
28542854
* ```ts
28552855
* [11,2,22,1].sort((a, b) => a - b)
28562856
* ```
@@ -3133,7 +3133,7 @@ interface Uint16Array {
31333133
* Sorts an array.
31343134
* @param compareFn Function used to determine the order of the elements. It is expected to return
31353135
* a negative value if first argument is less than second argument, zero if they're equal and a positive
3136-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
3136+
* value otherwise. If omitted, the elements are sorted in ascending order.
31373137
* ```ts
31383138
* [11,2,22,1].sort((a, b) => a - b)
31393139
* ```
@@ -3415,7 +3415,7 @@ interface Int32Array {
34153415
* Sorts an array.
34163416
* @param compareFn Function used to determine the order of the elements. It is expected to return
34173417
* a negative value if first argument is less than second argument, zero if they're equal and a positive
3418-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
3418+
* value otherwise. If omitted, the elements are sorted in ascending order.
34193419
* ```ts
34203420
* [11,2,22,1].sort((a, b) => a - b)
34213421
* ```
@@ -3696,7 +3696,7 @@ interface Uint32Array {
36963696
* Sorts an array.
36973697
* @param compareFn Function used to determine the order of the elements. It is expected to return
36983698
* a negative value if first argument is less than second argument, zero if they're equal and a positive
3699-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
3699+
* value otherwise. If omitted, the elements are sorted in ascending order.
37003700
* ```ts
37013701
* [11,2,22,1].sort((a, b) => a - b)
37023702
* ```
@@ -3978,7 +3978,7 @@ interface Float32Array {
39783978
* Sorts an array.
39793979
* @param compareFn Function used to determine the order of the elements. It is expected to return
39803980
* a negative value if first argument is less than second argument, zero if they're equal and a positive
3981-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
3981+
* value otherwise. If omitted, the elements are sorted in ascending order.
39823982
* ```ts
39833983
* [11,2,22,1].sort((a, b) => a - b)
39843984
* ```
@@ -4261,7 +4261,7 @@ interface Float64Array {
42614261
* Sorts an array.
42624262
* @param compareFn Function used to determine the order of the elements. It is expected to return
42634263
* a negative value if first argument is less than second argument, zero if they're equal and a positive
4264-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
4264+
* value otherwise. If omitted, the elements are sorted in ascending order.
42654265
* ```ts
42664266
* [11,2,22,1].sort((a, b) => a - b)
42674267
* ```

0 commit comments

Comments
 (0)