source: trip-planner-front/node_modules/lodash/rangeRight.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 862 bytes
Line 
1var createRange = require('./_createRange');
2
3/**
4 * This method is like `_.range` except that it populates values in
5 * descending order.
6 *
7 * @static
8 * @memberOf _
9 * @since 4.0.0
10 * @category Util
11 * @param {number} [start=0] The start of the range.
12 * @param {number} end The end of the range.
13 * @param {number} [step=1] The value to increment or decrement by.
14 * @returns {Array} Returns the range of numbers.
15 * @see _.inRange, _.range
16 * @example
17 *
18 * _.rangeRight(4);
19 * // => [3, 2, 1, 0]
20 *
21 * _.rangeRight(-4);
22 * // => [-3, -2, -1, 0]
23 *
24 * _.rangeRight(1, 5);
25 * // => [4, 3, 2, 1]
26 *
27 * _.rangeRight(0, 20, 5);
28 * // => [15, 10, 5, 0]
29 *
30 * _.rangeRight(0, -4, -1);
31 * // => [-3, -2, -1, 0]
32 *
33 * _.rangeRight(1, 4, 0);
34 * // => [1, 1, 1]
35 *
36 * _.rangeRight(0);
37 * // => []
38 */
39var rangeRight = createRange(true);
40
41module.exports = rangeRight;
Note: See TracBrowser for help on using the repository browser.