95539fde02e4ec862cf5e9346ca93a5927f58810f8236079bec7488e98128072752b0880d745c8d4889b08b30d0f55433803a1c7ad389396d26de54db5e861 363 B

123456789101112131415
  1. import copyArray from './_copyArray.js';
  2. import shuffleSelf from './_shuffleSelf.js';
  3. /**
  4. * A specialized version of `_.shuffle` for arrays.
  5. *
  6. * @private
  7. * @param {Array} array The array to shuffle.
  8. * @returns {Array} Returns the new shuffled array.
  9. */
  10. function arrayShuffle(array) {
  11. return shuffleSelf(copyArray(array));
  12. }
  13. export default arrayShuffle;