An intelligible function for JavaScript that produces a range
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.editorconfig.txt
.gitattributes
.gitignore
LICENSE
README.md
index.js
package.json

README.md

node-range

An intelligible function for JavaScript that produces a range

##Overview

The module can be used when you need a function that returns the range of some given numbers as arguments

##Installing

npm i node-num-range --save-dev

##Usage

Simply require the node-range module. The export function can be used in any module you desire:

range(start, end, step)

const range = require('node-num-range');

range(1,10); //==> [1,2,3,4,5,6,7,8,9,10]

##TODO

  • add more tests

##Tests

npm test

Uses mocha and chai's expect

// need to add tests

##Related Modules

##Contributing

Feel free to file an issue or bug.