mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +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.
|
* @returns {Array} Returns the new shuffled array.
|
||||||
*/
|
*/
|
||||||
function arrayShuffle(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.
|
* @returns {Array} Returns the new shuffled array.
|
||||||
*/
|
*/
|
||||||
function baseShuffle(collection) {
|
function baseShuffle(collection) {
|
||||||
return shuffleSelf(values(collection), MAX_ARRAY_LENGTH);
|
return shuffleSelf(values(collection));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user