number-array-from-range
Creates an array of numbers for a given range.
Install
You can install via npm or yarn.
npm
npm install --save number-array-from-range
yarn
yarn add number-array-from-range
Usage
Importing
You can import using ES6 imports.
;
Arguments
numberArrayFromRange accepts two arguments:
min: The lower bound of the number array to create
max The upper bound of the number array to create
Example
; const rangeArray = ;// [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]