MCPcopy
hub / github.com/lodash/lodash / arrayShuffle

Function arrayShuffle

lodash.js:2488–2490  ·  view source on GitHub ↗

* A specialized version of `_.shuffle` for arrays. * * @private * @param {Array} array The array to shuffle. * @returns {Array} Returns the new shuffled array.

(array)

Source from the content-addressed store, hash-verified

2486 * @returns {Array} Returns the new shuffled array.
2487 */
2488 function arrayShuffle(array) {
2489 return shuffleSelf(copyArray(array));
2490 }
2491
2492 /**
2493 * This function is like `assignValue` except that it doesn't assign

Callers

nothing calls this directly

Calls 2

shuffleSelfFunction · 0.85
copyArrayFunction · 0.85

Tested by

no test coverage detected