Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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