mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-08-01 09:14:27 +08:00
sort/
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
* A simple helper function that checks, if the array is
|
||||
* sorted in ascending order.
|
||||
*/
|
||||
|
||||
/* eslint no-extend-native: ["off", { "exceptions": ["Object"] }] */
|
||||
Array.prototype.isSorted = function () {
|
||||
const length = this.length
|
||||
|
||||
|
Reference in New Issue
Block a user