is-array-sorted
Single page Node package to check if the array is sorted or not
Example
var sorted = require('is-array-sorted');
console.log(sorted([1, 2, 3]))
// => true
console.log(sorted([3, 1, 2]))
// => false
Single page Node package to check if the array is sorted or not
var sorted = require('is-array-sorted');
console.log(sorted([1, 2, 3]))
// => true
console.log(sorted([3, 1, 2]))
// => false
npm i check-array-sorted
2
1.0.2
ISC