Sha256: d369e69ebbf5a8c3c76995810cfb0ff158375646519544df218e155f4475139f

Contents?: true

Size: 862 Bytes

Versions: 291

Compression:

Stored size: 862 Bytes

Contents

var createRange = require('./_createRange');

/**
 * This method is like `_.range` except that it populates values in
 * descending order.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Util
 * @param {number} [start=0] The start of the range.
 * @param {number} end The end of the range.
 * @param {number} [step=1] The value to increment or decrement by.
 * @returns {Array} Returns the range of numbers.
 * @see _.inRange, _.range
 * @example
 *
 * _.rangeRight(4);
 * // => [3, 2, 1, 0]
 *
 * _.rangeRight(-4);
 * // => [-3, -2, -1, 0]
 *
 * _.rangeRight(1, 5);
 * // => [4, 3, 2, 1]
 *
 * _.rangeRight(0, 20, 5);
 * // => [15, 10, 5, 0]
 *
 * _.rangeRight(0, -4, -1);
 * // => [-3, -2, -1, 0]
 *
 * _.rangeRight(1, 4, 0);
 * // => [1, 1, 1]
 *
 * _.rangeRight(0);
 * // => []
 */
var rangeRight = createRange(true);

module.exports = rangeRight;

Version data entries

291 entries across 268 versions & 32 rubygems

Version Path
sumomo-0.10.1 data/sumomo/api_modules/node_modules/lodash/rangeRight.js
sumomo-0.10.0 data/sumomo/api_modules/node_modules/lodash/rangeRight.js
reed_sdk-1.0.1 node_modules/lodash/rangeRight.js
reed_sdk-1.0.0 node_modules/lodash/rangeRight.js
boring_generators-0.12.0 tmp/templates/app_template/node_modules/lodash/rangeRight.js
sumomo-0.9.0 data/sumomo/api_modules/node_modules/lodash/rangeRight.js
sumomo-0.8.22 data/sumomo/api_modules/node_modules/lodash/rangeRight.js
sumomo-0.8.21 data/sumomo/api_modules/node_modules/lodash/rangeRight.js
sumomo-0.8.20 data/sumomo/api_modules/node_modules/lodash/rangeRight.js
sumomo-0.8.17 data/sumomo/api_modules/node_modules/lodash/rangeRight.js
sumomo-0.8.16 data/sumomo/api_modules/node_modules/lodash/rangeRight.js
disco_app-0.18.0 test/dummy/node_modules/lodash/rangeRight.js
disco_app-0.18.2 test/dummy/node_modules/lodash/rangeRight.js
sumomo-0.8.15 data/sumomo/api_modules/node_modules/lodash/rangeRight.js
trusty-cms-5.0.7 node_modules/lodash/rangeRight.js
appmap-0.72.2 ./node_modules/lodash/rangeRight.js
trusty-cms-5.0.6 node_modules/lodash/rangeRight.js
appmap-0.72.1 ./node_modules/lodash/rangeRight.js
appmap-0.72.0 ./node_modules/lodash/rangeRight.js
trusty-cms-5.0.5 node_modules/lodash/rangeRight.js