Files
lodash/.internal/baseShuffle.js
John-David Dalton 6cb3460fce Remove semicolons.
2017-02-05 22:22:04 -08:00

16 lines
363 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