mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Fix typo in _.range doc example.
This commit is contained in:
16
lodash.js
16
lodash.js
@@ -4765,17 +4765,17 @@
|
||||
* @returns {Array} Returns a new range array.
|
||||
* @example
|
||||
*
|
||||
* _.range(10);
|
||||
* // => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||
* _.range(4);
|
||||
* // => [0, 1, 2, 3]
|
||||
*
|
||||
* _.range(1, 11);
|
||||
* // => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
||||
* _.range(1, 5);
|
||||
* // => [1, 2, 3, 4]
|
||||
*
|
||||
* _.range(0, 30, 5);
|
||||
* // => [0, 5, 10, 15, 20, 25]
|
||||
* _.range(0, 20, 5);
|
||||
* // => [0, 5, 10, 15]
|
||||
*
|
||||
* _.range(0, -10, -1);
|
||||
* // => [0, -1, -2, -3, -4, -5, -6, -7, -8, -9]
|
||||
* _.range(0, -4, -1);
|
||||
* // => [0, -1, -2, -3]
|
||||
*
|
||||
* _.range(1, 4, 0);
|
||||
* // => [1, 1, 1]
|
||||
|
||||
Reference in New Issue
Block a user