1.0.0 • Published 3 months ago

checksort v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

checksort

check if an Array is sorted.

Example

const sorted = require('checksort')

console.log(checksort([1, 3, 5]))
// => true

console.log(checksort([2, 7, 0]))
// => false

// pass comparators
console.log(checksort([11, 5, 2], function (a, b) { return b - a }))
// => true

LICENSE MIT

1.0.0

3 months ago

0.0.1

9 years ago