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
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
@@ -404,15 +408,27 @@ interface Array<T> {
404
408
* @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
405
409
*/
406
410
join(separator?: string): string
411
+
412
+
/**
413
+
* Sorts an array in place using insertion sort -> O(n^2) complexity.
414
+
* This method mutates the array and returns a reference to the same array.
415
+
* @param compareFn Function used to determine the order of the elements. It is expected to return
416
+
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
417
+
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
0 commit comments