MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / every

Function every

docs/_static/underscore-1.13.1.js:1402–1411  ·  view source on GitHub ↗
(obj, predicate, context)

Source from the content-addressed store, hash-verified

1400
1401 // Determine whether all of the elements pass a truth test.
1402 function every(obj, predicate, context) {
1403 predicate = cb(predicate, context);
1404 var _keys = !isArrayLike(obj) && keys(obj),
1405 length = (_keys || obj).length;
1406 for (var index = 0; index < length; index++) {
1407 var currentKey = _keys ? _keys[index] : index;
1408 if (!predicate(obj[currentKey], currentKey, obj)) return false;
1409 }
1410 return true;
1411 }
1412
1413 // Determine if at least one element in the object passes a truth test.
1414 function some(obj, predicate, context) {

Callers

nothing calls this directly

Calls 3

cbFunction · 0.85
isArrayLikeFunction · 0.85
keysFunction · 0.85

Tested by

no test coverage detected