7f19150382a69808914181917e60ce0bf865b0331a54e44d2dacdfa10d49d5c8f73e602ccad772f0c2c553422d0f7ba34481f702bb3404523c6d432a38ba0f 371 B

123456789101112131415
  1. var shuffleSelf = require('./_shuffleSelf'),
  2. values = require('./values');
  3. /**
  4. * The base implementation of `_.shuffle`.
  5. *
  6. * @private
  7. * @param {Array|Object} collection The collection to shuffle.
  8. * @returns {Array} Returns the new shuffled array.
  9. */
  10. function baseShuffle(collection) {
  11. return shuffleSelf(values(collection));
  12. }
  13. module.exports = baseShuffle;