1.0.2 • Published 8 years ago
check-array-sorted v1.0.2
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