A small module to check if an Array is sorted
Install with npm:
$ npm install --save is-sorted-ts
const isSorted = require('is-sorted-ts')
console.log(isSorted([])) // true
console.log(isSorted([1, 2, 3])) // true
console.log(isSorted([3, 2, 1], (a, b) => b - a)) // false