You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib/es5.d.ts
+30-19Lines changed: 30 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -1235,7 +1235,9 @@ interface Array<T> {
1235
1235
slice(start?: number,end?: number): T[];
1236
1236
/**
1237
1237
* Sorts an array.
1238
-
* @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.
1238
+
* @param compareFn Function used to determine the order of the elements. It is expected to return
1239
+
* a negative value if first argument is less than second arguement, zero if they're equal and a positive
1240
+
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
1239
1241
*/
1240
1242
sort(compareFn?: (a: T,b: T)=>number): this;
1241
1243
/**
@@ -1876,8 +1878,9 @@ interface Int8Array {
1876
1878
1877
1879
/**
1878
1880
* Sorts an array.
1879
-
* @param compareFn The name of the function used to determine the order of the elements. If
1880
-
* omitted, the elements are sorted in ascending, ASCII character order.
1881
+
* @param compareFn Function used to determine the order of the elements. It is expected to return
1882
+
* a negative value if first argument is less than second arguement, zero if they're equal and a positive
1883
+
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
0 commit comments