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