array-is-sorted

1.1.1 • Public • Published

array-is-sorted

A small module to check if an Array is sorted.

Example

import sorted from "array-is-sorted"
 
console.log(sorted([1, 3, 4]))
// => true
 
console.log(sorted({a: [1]}))
// => error

License

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

Readme

Keywords

Package Sidebar

Install

npm i array-is-sorted

Weekly Downloads

1

Version

1.1.1

License

MIT

Last publish

Collaborators

  • haoj