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

Function sample

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

* Retrieves a random element or `n` random elements from a collection. * * @static * @memberOf _ * @category Collections * @param {Array|Object|string} collection The collection to sample. * @param {number} [n] The number of elements to sample. * @param- {Object} [

(collection, n, guard)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

valuesFunction · 0.85
baseRandomFunction · 0.85
shuffleFunction · 0.85
isStringFunction · 0.70

Tested by

no test coverage detected