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

1.0.1 • Public • Published

range-exclusive Build Status

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

Installation

npm install range-exclusive

Usage

var rangeExclusive = require('range-exclusive')
 
rangeExclusive(10) // [1, 2, 3, 4, 5, 6, 7, 8, 9]
rangeExclusive(3, 9, 3) // [3, 6]
rangeExclusive(7, 5, -1) // [7, 6]
 

Related

License

ISC

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    7
  • 1.0.0
    1

Package Sidebar

Install

npm i range-exclusive

Weekly Downloads

8

Version

1.0.1

License

ISC

Unpacked Size

3.62 kB

Total Files

6

Last publish

Collaborators

  • emilbay
  • emilbayes