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

Function removeFromEach

test/fixtures/snapshot/typescript.js:61532–61536  ·  view source on GitHub ↗
(types, flag)

Source from the content-addressed store, hash-verified

61530 return ts.every(types, function (t) { return !!(t.flags & 1048576 /* TypeFlags.Union */) && ts.some(t.types, function (tt) { return !!(tt.flags & flag); }); });
61531 }
61532 function removeFromEach(types, flag) {
61533 for (var i = 0; i < types.length; i++) {
61534 types[i] = filterType(types[i], function (t) { return !(t.flags & flag); });
61535 }
61536 }
61537 // If the given list of types contains more than one union of primitive types, replace the
61538 // first with a union containing an intersection of those primitive types, then remove the
61539 // other unions and return true. Otherwise, do nothing and return false.

Callers 1

getIntersectionTypeFunction · 0.85

Calls 1

filterTypeFunction · 0.85

Tested by

no test coverage detected