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

Function containsType

test/fixtures/snapshot/typescript.js:61114–61116  ·  view source on GitHub ↗
(types, type)

Source from the content-addressed store, hash-verified

61112 return type.id;
61113 }
61114 function containsType(types, type) {
61115 return ts.binarySearch(types, type, getTypeId, ts.compareValues) >= 0;
61116 }
61117 function insertType(types, type) {
61118 var index = ts.binarySearch(types, type, getTypeId, ts.compareValues);
61119 if (index < 0) {

Callers 10

getUnionTypeFunction · 0.85
_loop_17Function · 0.85
eachUnionContainsFunction · 0.85
getIntersectionTypeFunction · 0.85
typeRelatedToSomeTypeFunction · 0.85
someTypeRelatedToTypeFunction · 0.85
containsMissingTypeFunction · 0.85
isTypeSubsetOfUnionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected