Skip to content

Commit 05e05e6

Browse files
authored
Fix for #56119 - Update JSDoc for TypedArrays (#56148)
1 parent 7f482f9 commit 05e05e6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/lib/es2023.array.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ interface Int8Array {
191191
* Copies and sorts the array.
192192
* @param compareFn Function used to determine the order of the elements. It is expected to return
193193
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
194-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
194+
* value otherwise. If omitted, the elements are sorted in ascending order.
195195
* ```ts
196196
* const myNums = Uint8Array.from([11, 2, 22, 1]);
197197
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
@@ -255,7 +255,7 @@ interface Uint8Array {
255255
* Copies and sorts the array.
256256
* @param compareFn Function used to determine the order of the elements. It is expected to return
257257
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
258-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
258+
* value otherwise. If omitted, the elements are sorted in ascending order.
259259
* ```ts
260260
* const myNums = Uint8Array.from([11, 2, 22, 1]);
261261
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
@@ -327,7 +327,7 @@ interface Uint8ClampedArray {
327327
* Copies and sorts the array.
328328
* @param compareFn Function used to determine the order of the elements. It is expected to return
329329
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
330-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
330+
* value otherwise. If omitted, the elements are sorted in ascending order.
331331
* ```ts
332332
* const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);
333333
* myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]
@@ -391,7 +391,7 @@ interface Int16Array {
391391
* Copies and sorts the array.
392392
* @param compareFn Function used to determine the order of the elements. It is expected to return
393393
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
394-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
394+
* value otherwise. If omitted, the elements are sorted in ascending order.
395395
* ```ts
396396
* const myNums = Int16Array.from([11, 2, -22, 1]);
397397
* myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]
@@ -463,7 +463,7 @@ interface Uint16Array {
463463
* Copies and sorts the array.
464464
* @param compareFn Function used to determine the order of the elements. It is expected to return
465465
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
466-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
466+
* value otherwise. If omitted, the elements are sorted in ascending order.
467467
* ```ts
468468
* const myNums = Uint16Array.from([11, 2, 22, 1]);
469469
* myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]
@@ -527,7 +527,7 @@ interface Int32Array {
527527
* Copies and sorts the array.
528528
* @param compareFn Function used to determine the order of the elements. It is expected to return
529529
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
530-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
530+
* value otherwise. If omitted, the elements are sorted in ascending order.
531531
* ```ts
532532
* const myNums = Int32Array.from([11, 2, -22, 1]);
533533
* myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]
@@ -599,7 +599,7 @@ interface Uint32Array {
599599
* Copies and sorts the array.
600600
* @param compareFn Function used to determine the order of the elements. It is expected to return
601601
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
602-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
602+
* value otherwise. If omitted, the elements are sorted in ascending order.
603603
* ```ts
604604
* const myNums = Uint32Array.from([11, 2, 22, 1]);
605605
* myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]
@@ -671,7 +671,7 @@ interface Float32Array {
671671
* Copies and sorts the array.
672672
* @param compareFn Function used to determine the order of the elements. It is expected to return
673673
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
674-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
674+
* value otherwise. If omitted, the elements are sorted in ascending order.
675675
* ```ts
676676
* const myNums = Float32Array.from([11.25, 2, -22.5, 1]);
677677
* myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]
@@ -743,7 +743,7 @@ interface Float64Array {
743743
* Copies and sorts the array.
744744
* @param compareFn Function used to determine the order of the elements. It is expected to return
745745
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
746-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
746+
* value otherwise. If omitted, the elements are sorted in ascending order.
747747
* ```ts
748748
* const myNums = Float64Array.from([11.25, 2, -22.5, 1]);
749749
* myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5]
@@ -815,7 +815,7 @@ interface BigInt64Array {
815815
* Copies and sorts the array.
816816
* @param compareFn Function used to determine the order of the elements. It is expected to return
817817
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
818-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
818+
* value otherwise. If omitted, the elements are sorted in ascending order.
819819
* ```ts
820820
* const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);
821821
* myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]
@@ -887,7 +887,7 @@ interface BigUint64Array {
887887
* Copies and sorts the array.
888888
* @param compareFn Function used to determine the order of the elements. It is expected to return
889889
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
890-
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
890+
* value otherwise. If omitted, the elements are sorted in ascending order.
891891
* ```ts
892892
* const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);
893893
* myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]

0 commit comments

Comments
 (0)