source: trip-planner-front/node_modules/lodash/_arrayShuffle.js@ e29cc2e

Last change on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 365 bytes
Line 
1var copyArray = require('./_copyArray'),
2 shuffleSelf = require('./_shuffleSelf');
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
15module.exports = arrayShuffle;
Note: See TracBrowser for help on using the repository browser.