Urara-Blog/node_modules/.pnpm-store/v3/files/68/b4e755ddd252fa737433ed9399154123ebe967933d2d75ef9ed2cd09f233727f30d91f8521b951c0ccfbbeeb98d4b89adeea53589379808a479007d264180d
2022-08-14 01:14:53 +08:00

15 lines
365 B
Text

var copyArray = require('./_copyArray'),
shuffleSelf = require('./_shuffleSelf');
/**
* A specialized version of `_.shuffle` for arrays.
*
* @private
* @param {Array} array The array to shuffle.
* @returns {Array} Returns the new shuffled array.
*/
function arrayShuffle(array) {
return shuffleSelf(copyArray(array));
}
module.exports = arrayShuffle;