Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-points2range
Points to range for next.
https://github.com/afeiship/next-points2range
next points range slice
Last synced: about 1 month ago
JSON representation
Points to range for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-points2range
- Owner: afeiship
- License: mit
- Created: 2020-04-03T04:32:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T05:43:17.000Z (almost 4 years ago)
- Last Synced: 2024-09-30T12:41:02.653Z (about 2 months ago)
- Topics: next, points, range, slice
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-points2range
> Points to range for next.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-points2range
```## usage
```js
import '@jswork/next-points2range';const res = nx.points2range(1, 6, -1);
// results:
[
[ 0, 1 ],
[ 1, 6 ],
[ 6, -1 ],
[ -1 ]
]
```## license
Code released under [the MIT license](https://github.com/afeiship/next-points2range/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-points2range
[version-url]: https://npmjs.org/package/@jswork/next-points2range[license-image]: https://img.shields.io/npm/l/@jswork/next-points2range
[license-url]: https://github.com/afeiship/next-points2range/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-points2range
[size-url]: https://github.com/afeiship/next-points2range/blob/master/dist/next-points2range.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-points2range
[download-url]: https://www.npmjs.com/package/@jswork/next-points2range