MCPcopy
hub / github.com/Kong/insomnia / arrayShuffle

Function arrayShuffle

packages/insomnia/bin/yarn-standalone.js:10088–10090  ·  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

10086 * @returns {Array} Returns the new shuffled array.
10087 */
10088 function arrayShuffle(array) {
10089 return shuffleSelf(copyArray(array));
10090 }
10091
10092 /**
10093 * 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