range-inclusive
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/range-inclusive package

1.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    255
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    255
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i range-inclusive

Weekly Downloads

255

Version

1.0.2

License

ISC

Last publish

Collaborators

  • emilbayes
  • emilbay