Check if an Array is sorted
npm install is-array-sorted> Check if an array is sorted
```
$ npm install is-array-sorted
`js
import isArraySorted from 'is-array-sorted';
isArraySorted([1, 2, 3]);
//=> true
isArraySorted([1, 3, 2]);
//=> false
isArraySorted(['a', 'b', 'c']);
//=> true
`
Returns a boolean.
#### array
Type: unknown[]
The array to check.
#### options
Type: object
##### comparator
Type: Function\(a, b) => a - b
Default: Ascending order ()
Same as Array#sort(comparator)`.