Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Latest commit

 

History

History
27 lines (15 loc) · 702 Bytes

README.md

File metadata and controls

27 lines (15 loc) · 702 Bytes

nexxa-ranger Build Status

Simple ranger creator.

Signature

ranger(start, stop [,step])

Creates an array with numeric values from start (inclusive) to stop (exclusive) through step (default 1).

Use

var ranger = require('nexxa-ranger');

console.log(ranger(0, 9));
// -> [0, 1, 2, 3, 4, 5, 6, 7, 8]

console.log(ranger(0, 9, 2));
// -> [0, 2, 4, 6, 8]

Contribution

Fork, edit and send a pull-request.

Test made with TAPE.

Continuous integration courtesy of Travis CI.