MCPcopy
hub / github.com/vercel/hyper / arrayShuffle

Function arrayShuffle

bin/yarn-standalone.js:10177–10179  ·  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

10175 * @returns {Array} Returns the new shuffled array.
10176 */
10177 function arrayShuffle(array) {
10178 return shuffleSelf(copyArray(array));
10179 }
10180
10181 /**
10182 * 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