https://github.com/comparison-sorting/is-sorted
:heavy_check_mark: Order validation for JavaScript
https://github.com/comparison-sorting/is-sorted
Last synced: 3 months ago
JSON representation
:heavy_check_mark: Order validation for JavaScript
- Host: GitHub
- URL: https://github.com/comparison-sorting/is-sorted
- Owner: comparison-sorting
- License: agpl-3.0
- Created: 2021-07-15T16:10:34.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-10T22:20:13.000Z (9 months ago)
- Last Synced: 2024-10-12T19:55:23.800Z (9 months ago)
- Language: JavaScript
- Homepage: https://comparison-sorting.github.io/is-sorted
- Size: 2.24 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:heavy_check_mark: [@comparison-sorting/is-sorted](https://comparison-sorting.github.io/is-sorted)
==Order validation for JavaScript.
See [docs](https://comparison-sorting.github.io/is-sorted/index.html).```js
import {isSorted} from '@comparison-sorting/is-sorted';
import {increasing, decreasing} from '@total-order/primitive';
isSorted(increasing, [1, 2, 3], 0, 3); // true
isSorted(decreasing, [1, 2, 3], 0, 3); // false
```[](https://raw.githubusercontent.com/comparison-sorting/is-sorted/main/LICENSE)
[](https://www.npmjs.org/package/@comparison-sorting/is-sorted)
[](https://github.com/comparison-sorting/is-sorted/actions/workflows/ci.yml?query=branch:main)
[](https://github.com/comparison-sorting/is-sorted/network/dependencies)
[](https://github.com/comparison-sorting/is-sorted/issues)
[](https://www.npmjs.org/package/@comparison-sorting/is-sorted)[](https://codeclimate.com/github/comparison-sorting/is-sorted/issues)
[](https://codeclimate.com/github/comparison-sorting/is-sorted/trends/churn)
[](https://codecov.io/gh/comparison-sorting/is-sorted)
[](https://codeclimate.com/github/comparison-sorting/is-sorted/trends/technical_debt)
[](https://comparison-sorting.github.io/is-sorted/source.html)
[](https://bundlephobia.com/result?p=@comparison-sorting/is-sorted)