new_test / node_modules /lodash /_baseShuffle.js
mahiatlinux's picture
Upload 3053 files
311cc15 verified
raw
history blame contribute delete
371 Bytes
var shuffleSelf = require('./_shuffleSelf'),
values = require('./values');
/**
* The base implementation of `_.shuffle`.
*
* @private
* @param {Array|Object} collection The collection to shuffle.
* @returns {Array} Returns the new shuffled array.
*/
function baseShuffle(collection) {
return shuffleSelf(values(collection));
}
module.exports = baseShuffle;