mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-25 06:49:15 +01:00
16 lines
363 B
JavaScript
Vendored
16 lines
363 B
JavaScript
Vendored
import copyArray from './_copyArray.js';
|
|
import shuffleSelf from './_shuffleSelf.js';
|
|
|
|
/**
|
|
* A specialized version of `_.shuffle` for arrays.
|
|
*
|
|
* @private
|
|
* @param {Array} array The array to shuffle.
|
|
* @returns {Array} Returns the new shuffled array.
|
|
*/
|
|
function arrayShuffle(array) {
|
|
return shuffleSelf(copyArray(array));
|
|
}
|
|
|
|
export default arrayShuffle;
|