Files
lodash/.internal/baseShuffle.js
John-David Dalton aa60e55db4 Update module paths.
2017-01-11 10:06:12 -08:00

16 lines
367 B
JavaScript

import shuffleSelf from './shuffleSelf.js';
import values from '../values.js';
/**
* 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));
}
export default baseShuffle;