source: imaps-frontend/node_modules/lodash-es/_arrayShuffle.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 363 bytes
RevLine 
[d565449]1import copyArray from './_copyArray.js';
2import shuffleSelf from './_shuffleSelf.js';
3
4/**
5 * A specialized version of `_.shuffle` for arrays.
6 *
7 * @private
8 * @param {Array} array The array to shuffle.
9 * @returns {Array} Returns the new shuffled array.
10 */
11function arrayShuffle(array) {
12 return shuffleSelf(copyArray(array));
13}
14
15export default arrayShuffle;
Note: See TracBrowser for help on using the repository browser.