Checks if the given array is sorted.
isSorted([1, 2, 3]); // true isSorted([2, 1, 5, 3]); // false
The array to check.
Whether the array is sorted.
Generated using TypeDoc
Checks if the given array is sorted.
isSorted([1, 2, 3]); // true isSorted([2, 1, 5, 3]); // false