(obj, predicate, context)
| 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) { |
nothing calls this directly
no test coverage detected