k8s-deploy/node_modules/lodash/_baseShuffle.js
David Gamero 9860cfe0c2
release v1.5 (#162)
Co-authored-by: David Gamero <davidgamero@microsoft.com>
2021-12-09 16:44:30 -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;