range-inclusive
Generate a closed range of numbers `[a, b]` with step size `d`
Last updated 4 years ago by emilbay .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install range-inclusive 
SYNC missed versions from official npm registry.

range-inclusive Build Status

Generate a closed range of numbers [a, b] with step size d

Installation

npm install range-inclusive

Usage

var rangeInclusive = require('range-inclusive')

rangeInclusive(10) // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
rangeInclusive(3, 9, 3) // [3, 6, 9]
rangeInclusive(7, 5, -1) // [7, 6, 5]

Related

License

ISC

Current Tags

  • 1.0.2                                ...           latest (4 years ago)

3 Versions

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

Copyright 2014 - 2016 © taobao.org |