Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/component/range
Return a range of integers
https://github.com/component/range
Last synced: 13 days ago
JSON representation
Return a range of integers
- Host: GitHub
- URL: https://github.com/component/range
- Owner: component
- Created: 2012-10-17T00:15:43.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-06-06T15:18:28.000Z (over 11 years ago)
- Last Synced: 2024-05-08T17:06:49.719Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 135 KB
- Stars: 4
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# range
Return a range of integers
## Installation
$ component install component/range
## API
Exclusive range:
```js
range(5, 10);
// => [5,6,7,8,9]
```Inclusive range (truthy value):
```js
range(5, 10, true);
range(5, 10, 'inclusive');
// => [5,6,7,8,9,10]
```## License
MIT