mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Remove MAX_ARRAY_LENGTH use in arrayShuffle and baseShuffle.
This commit is contained in:
@@ -2430,7 +2430,7 @@
|
||||
* @returns {Array} Returns the new shuffled array.
|
||||
*/
|
||||
function arrayShuffle(array) {
|
||||
return shuffleSelf(copyArray(array), MAX_ARRAY_LENGTH);
|
||||
return shuffleSelf(copyArray(array));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4001,7 +4001,7 @@
|
||||
* @returns {Array} Returns the new shuffled array.
|
||||
*/
|
||||
function baseShuffle(collection) {
|
||||
return shuffleSelf(values(collection), MAX_ARRAY_LENGTH);
|
||||
return shuffleSelf(values(collection));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user