Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

15 righe
371 B

4 anni fa
  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;