Licence
MIT
Version
1.0.3
Deps
1
Size
4 kB
Vulns
0
Weekly
0
is-sorted-ts

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