Creates an array of numbers (positive and/or negative) progressing from start up to, but not including, end. A step of -1 is used if a negative start is specified without an end or step. If end is not specified, it's set to start with start then set to 0.
Note: JavaScript follows the IEEE-754 standard for resolving floating-point values which can produce unexpected results.
Differences from lodash:
does not work as an iteratee for functions like map
Contribution to minified bundle size, when it is the only function imported:
Creates an array of numbers (positive and/or negative) progressing from
start
up to, but not including,end
. Astep
of-1
is used if a negativestart
is specified without anend
orstep
. Ifend
is not specified, it's set tostart
withstart
then set to0
.Note: JavaScript follows the IEEE-754 standard for resolving floating-point values which can produce unexpected results.
Differences from lodash:
map
Contribution to minified bundle size, when it is the only function imported: