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
immosquare-cleaner-0.1.52 node_modules/lodash/rangeRight.js
trusty-cms-6.3.1 node_modules/lodash/rangeRight.js
immosquare-cleaner-0.1.51 node_modules/lodash/rangeRight.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/lodash/rangeRight.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/lodash/rangeRight.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/lodash/rangeRight.js
immosquare-cleaner-0.1.50 node_modules/lodash/rangeRight.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/lodash/rangeRight.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/lodash/rangeRight.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/lodash/rangeRight.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/lodash/rangeRight.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/lodash/rangeRight.js
clapton-0.0.19 lib/clapton/javascripts/node_modules/lodash/rangeRight.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/lodash/rangeRight.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/lodash/rangeRight.js
clapton-0.0.16 lib/clapton/javascripts/node_modules/lodash/rangeRight.js
clapton-0.0.15 lib/clapton/javascripts/node_modules/lodash/rangeRight.js
immosquare-cleaner-0.1.49 node_modules/lodash/rangeRight.js
clapton-0.0.14 lib/clapton/javascripts/node_modules/lodash/rangeRight.js
immosquare-cleaner-0.1.48 node_modules/lodash/rangeRight.js