MCPcopy Create free account
hub / github.com/curran/screencasts / sample

Function sample

introToChiasm/examples/code/snapshot19/main-build.js:7107–7128  ·  view source on GitHub ↗

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

(collection, n, guard)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

shuffleFunction · 0.70
runInContextFunction · 0.70

Calls 4

isIterateeCallFunction · 0.70
toIterableFunction · 0.70
baseRandomFunction · 0.70
toArrayFunction · 0.70

Tested by

no test coverage detected