MCPcopy Create free account
hub / github.com/deployd/deployd / arrayShuffle

Function arrayShuffle

test-app/public/sinon.js:13066–13068  ·  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

13064 * @returns {Array} Returns the new shuffled array.
13065 */
13066 function arrayShuffle(array) {
13067 return shuffleSelf(copyArray(array));
13068 }
13069
13070 /**
13071 * 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