1
0
mirror of https://github.com/actions/setup-node synced 2025-05-05 06:33:54 +00:00
setup-node/node_modules/lodash/_baseShuffle.js
eric sciple 422b9fdb15 .
2020-01-24 12:21:24 -05:00

16 lines
371 B
JavaScript

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;