MCPcopy Create free account
hub / github.com/cnodejs/egg-cnode / shuffle

Function shuffle

app/public/libs/lodash.compat.js:4237–4248  ·  view source on GitHub ↗

* Creates an array of shuffled values, using a version of the Fisher-Yates * shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle. * * @static * @memberOf _ * @category Collections * @param {Array|Object|string} collection The collection to shuffle. * @re

(collection)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

sampleFunction · 0.85

Calls 2

forEachFunction · 0.85
baseRandomFunction · 0.85

Tested by

no test coverage detected