MCPcopy Index your code
hub / github.com/deployd/deployd / every

Function every

test-app/public/sinon.js:19753–19759  ·  view source on GitHub ↗

* Checks if `predicate` returns truthy for **all** elements of `collection`. * Iteration is stopped once `predicate` returns falsey. The predicate is * invoked with three arguments: (value, index|key, collection). * * **Note:** This method returns `true` for

(collection, predicate, guard)

Source from the content-addressed store, hash-verified

19751 * // => false
19752 */
19753 function every(collection, predicate, guard) {
19754 var func = isArray(collection) ? arrayEvery : baseEvery;
19755 if (guard && isIterateeCall(collection, predicate, guard)) {
19756 predicate = undefined;
19757 }
19758 return func(collection, getIteratee(predicate, 3));
19759 }
19760
19761 /**
19762 * Iterates over elements of `collection`, returning an array of all elements

Callers 2

sinon.jsFile · 0.85
arrayEqualsFunction · 0.85

Calls 3

isIterateeCallFunction · 0.85
getIterateeFunction · 0.85
isArrayFunction · 0.70

Tested by

no test coverage detected