1.0.6 • Published 7 years ago

create-range v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Create range

Creates an array of integers from start up to end. Always returns an array. Never throws any errors.


Installation

npm i --save create-range

Usage

Create an array of integers:

const fromTenToTwenty = createRange(10, 20);
// [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]

const minusPlusFifty = createRange(-50, 50);
// [-50, -49, ... , 49, 50]

const x = createRange(-Infinity, undefined);
// []
1.0.6

7 years ago

1.0.5

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.0

7 years ago