Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 374 Bytes

strict-type-predicates.md

File metadata and controls

11 lines (6 loc) · 374 Bytes

Pattern: Redundant type predicate

Issue: -

Description

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.

Further Reading