MCPcopy Create free account
hub / github.com/SimonBuxx/LogiJS / baseSample

Function baseSample

libraries/lodash.js:3950–3952  ·  view source on GitHub ↗

* The base implementation of `_.sample`. * * @private * @param {Array|Object} collection The collection to sample. * @returns {*} Returns the random element.

(collection)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

arraySampleFunction · 0.85
valuesFunction · 0.85

Tested by

no test coverage detected