Skip to content

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

License

Notifications You must be signed in to change notification settings

emilbayes/range-exclusive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published