Pattern: Redundant type predicate
Issue: -
Warns for type predicates that are always true or always false. Works for typeof
comparisons to constants (e.g. typeof foo === “string”
), and equality comparison to null
/undefined
.
Pattern: Redundant type predicate
Issue: -
Warns for type predicates that are always true or always false. Works for typeof
comparisons to constants (e.g. typeof foo === “string”
), and equality comparison to null
/undefined
.