Skip to content

Yhaojing/array-is-sorted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# array-is-sorted
A small module to check if an Array is sorted.

## Example
``` javascript
import sorted from "array-is-sorted"

console.log(sorted([1, 3, 4]))
// => true

console.log(sorted([3, 2, 1], 'DESC'))
// => true

console.log(sorted({a: [1]}))
// => error
```

## License

This library is free and open-source software released under the MIT license.

About

A small module to check if an Array is sorted.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published