number-array-generator

1.0.1 • Public • Published

Number Array Generator

Provides a single function that will build an array of numbers given a start value and an inclusive end value.

Useful for building otherwise tedious lists of values such as minutes or years!

Usage

const numberArrayGenerator = require('number-array-generator');

numberArrayGenerator(5, 10); // [5, 6, 7, 8, 9, 10]
numberArrayGenerator(12, 6); // [12, 11, 10, 9, 8, 7, 6]

Package Sidebar

Install

npm i number-array-generator

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • joelebeau