Skip to content

tomasuno1/checksort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published