Sha256: d369e69ebbf5a8c3c76995810cfb0ff158375646519544df218e155f4475139f

Contents?: true

Size: 862 Bytes

Versions: 290

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

290 entries across 267 versions & 32 rubygems

Version Path
babel-schmooze-sprockets-0.1.1 node_modules/babel-helper-call-delegate/node_modules/lodash/rangeRight.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-generator/node_modules/lodash/rangeRight.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-core/node_modules/lodash/rangeRight.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-sticky-regex/node_modules/lodash/rangeRight.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-regenerator/node_modules/lodash/rangeRight.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-strict-mode/node_modules/lodash/rangeRight.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-register/node_modules/lodash/rangeRight.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-template/node_modules/lodash/rangeRight.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-helper-function-name/node_modules/lodash/rangeRight.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-parameters/node_modules/lodash/rangeRight.js