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

Function isNarrowingTypeofOperands

test/fixtures/snapshot/typescript.js:45386–45388  ·  view source on GitHub ↗
(expr1, expr2)

Source from the content-addressed store, hash-verified

45384 return false;
45385 }
45386 function isNarrowingTypeofOperands(expr1, expr2) {
45387 return ts.isTypeOfExpression(expr1) && isNarrowableOperand(expr1.expression) && ts.isStringLiteralLike(expr2);
45388 }
45389 function isNarrowingBinaryExpression(expr) {
45390 switch (expr.operatorToken.kind) {
45391 case 63 /* SyntaxKind.EqualsToken */:

Callers 1

Calls 1

isNarrowableOperandFunction · 0.85

Tested by

no test coverage detected