is-sorted-ts
v1.0.3
Published
A small module to check if an Array is sorted
Maintainers
Readme
is-sorted-ts

A small module to check if an Array is sorted
Install
Install with npm:
$ npm install --save is-sorted-tsUsage
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 