range-component

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i range-component

Weekly Downloads

669

Version

1.0.0

License

MIT

Last publish

Collaborators

  • defunctzombie