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

Function some

test/fixtures/snapshot/typescript.js:931–946  ·  view source on GitHub ↗
(array, predicate)

Source from the content-addressed store, hash-verified

929 }
930 ts.mapEntries = mapEntries;
931 function some(array, predicate) {
932 if (array) {
933 if (predicate) {
934 for (var _i = 0, array_3 = array; _i < array_3.length; _i++) {
935 var v = array_3[_i];
936 if (predicate(v)) {
937 return true;
938 }
939 }
940 }
941 else {
942 return array.length > 0;
943 }
944 }
945 return false;
946 }
947 ts.some = some;
948 /** Calls the callback with (start, afterEnd) index pairs for each range where 'pred' is true. */
949 function getRangesWhere(arr, pred, cb) {

Callers 2

concatenateFunction · 0.70
binarySearchKeyFunction · 0.70

Calls 1

predicateFunction · 0.50

Tested by

no test coverage detected