Skip to content
Return a range of integers
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
Makefile
Readme.md
component.json
example.js
index.js

Readme.md

range

Return a range of integers

Installation

$ component install component/range

API

Exclusive range:

range(5, 10);
// => [5,6,7,8,9]

Inclusive range (truthy value):

range(5, 10, true);
range(5, 10, 'inclusive');
// => [5,6,7,8,9,10]

License

MIT

Something went wrong with that request. Please try again.