MCPcopy Index your code
hub / github.com/nodejs/node / every

Function every

test/fixtures/snapshot/typescript.js:492–501  ·  view source on GitHub ↗

* Iterates through `array` by index and performs the callback on each element of array until the callback * returns a falsey value, then returns false. * If no such value is found, the callback is applied to each element of array and `true` is returned.

(array, callback)

Source from the content-addressed store, hash-verified

490 * If no such value is found, the callback is applied to each element of array and `true` is returned.
491 */
492 function every(array, callback) {
493 if (array) {
494 for (var i = 0; i < array.length; i++) {
495 if (!callback(array[i], i)) {
496 return false;
497 }
498 }
499 }
500 return true;
501 }
502 ts.every = every;
503 function find(array, predicate) {
504 for (var i = 0; i < array.length; i++) {

Callers 4

matchSegmentFunction · 0.70
_loop_8Function · 0.70
isAllPunctuationFunction · 0.70

Calls 2

everyInRangeFunction · 0.85
callbackFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…