From 4d6aade733da4f50bf13bf9619e3699b7fd6382b Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 25 Sep 2016 12:03:50 -0700 Subject: [PATCH] Rename param to `size`. --- lodash.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lodash.js b/lodash.js index 7e81ec664..7af090e74 100644 --- a/lodash.js +++ b/lodash.js @@ -6584,23 +6584,23 @@ * * @private * @param {Array} array The array to shuffle. - * @param {number} [n=array.length] The size of `array`. + * @param {number} [size=array.length] The size of `array`. * @returns {Array} Returns `array`. */ - function shuffleSelf(array, n) { + function shuffleSelf(array, size) { var index = -1, length = array.length, lastIndex = length - 1; - n = n === undefined ? length : baseClamp(n, 0, length); - while (++index < n) { + size = size === undefined ? length : baseClamp(size, 0, length); + while (++index < size) { var rand = baseRandom(index, lastIndex), value = array[rand]; array[rand] = array[index]; array[index] = value; } - array.length = n; + array.length = size; return array; }