range-component
Return a range of integers
Last updated 7 years ago by shtylman .
MIT · Original npm · Tarball · package.json
$ cnpm install range-component 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (7 years ago)

1 Versions

  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |