The array to be sorted.
The sorted array.
This function uses the JavaScript Array.prototype.sort()
method, which sorts elements in place.
Therefore, the original array will be modified.
If any element in the input array is not a number, bigint, or boolean.
const input = [5, 2n, true, 10, false];
arrSortNumeric(input);
//=> [false, true, 2n, 5, 10]
Generated using TypeDoc
Sorts an array of numbers, bigints, or booleans in ascending order.