# is-sorted

> A small module to check if an Array is sorted

Latest version **1.0.5** (published 2018-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-sorted
pnpm add is-sorted
yarn add is-sorted
bun add is-sorted
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2018-05-22 |
| First published | 2015-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | Daniel Cousens |
| Maintainers | dcousens |
| Keywords | is-sorted, sorting, sort, sorted, array, list, comparison |

## Links

- npm: https://www.npmjs.com/package/is-sorted
- Repository: https://github.com/dcousens/is-sorted
- Issues: https://github.com/dcousens/is-sorted/issues
- npm.io page: https://npm.io/package/is-sorted

## Recent versions

- 1.0.5 (latest) — 2018-05-22
- 1.0.4 — 2017-09-25
- 1.0.3 — 2017-09-25
- 1.0.2 — 2015-08-15
- 1.0.1 — 2015-05-18
- 1.0.0 — 2015-05-18

## README

# is-sorted
[![TRAVIS](https://secure.travis-ci.org/dcousens/is-sorted.png)](http://travis-ci.org/dcousens/is-sorted)
[![NPM](https://img.shields.io/npm/v/is-sorted.svg)](https://www.npmjs.org/package/is-sorted)
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)

A small module to check if an Array is sorted.


## Example
``` javascript
var sorted = require('is-sorted')

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

console.log(sorted([3, 1, 2]))
// => false

// supports custom comparators
console.log(sorted([3, 2, 1], function (a, b) { return b - a })
// => true
```


## LICENSE [MIT](LICENSE)

---
_Source: https://npm.io/package/is-sorted · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
