CodeQL library for JavaScript/TypeScript
codeql/javascript-all 1.0.1 (changelog, source)
Search

Predicate TaintTracking::isStringTypeGuard

A test for the value of typeof x, restricting the potential types of x.

Import path

import javascript
predicate isStringTypeGuard(EqualityTest test, Expr operand, boolean polarity)