Skip to content

Commit

Permalink
Remove MAX_ARRAY_LENGTH use in arrayShuffle and baseShuffle.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Sep 25, 2016
1 parent 1fd768d commit 35df38e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lodash.js
Expand Up @@ -2431,7 +2431,7 @@
* @returns {Array} Returns the new shuffled array.
*/
function arrayShuffle(array) {
return shuffleSelf(copyArray(array), MAX_ARRAY_LENGTH);
return shuffleSelf(copyArray(array));
}

/**
Expand Down Expand Up @@ -4002,7 +4002,7 @@
* @returns {Array} Returns the new shuffled array.
*/
function baseShuffle(collection) {
return shuffleSelf(values(collection), MAX_ARRAY_LENGTH);
return shuffleSelf(values(collection));
}

/**
Expand Down

0 comments on commit 35df38e

Please sign in to comment.