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

Predicate hasNoEffect

Holds if the expression e should be reported as having no effect.

Import path

import Expressions.ExprHasNoEffect
predicate hasNoEffect(Expr e)