JSPM

range-inclusive

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 184
  • Score
    100M100P100Q102671F
  • License ISC

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

Package Exports

  • range-inclusive

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (range-inclusive) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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]

License

ISC