Home / Vulnerability Database / TypeScript : Possible typo when comparing types
TypeScript
TypeScript : Possible typo when comparing types
Overview
For a vast majority of use cases, the result of the typeof operator is one of the following string literals: “undefined”, “object”, “boolean”, “number”, “string”, “function” and “symbol”. It is usually a typing mistake to compare the result of a typeof operator to other string literals.
References
LOW
DerScanner Severity Score
Do you want to fix TypeScript : Possible typo when comparing types in your application?
See also
TypeScript
TypeScript : Unsafe Azure access control
TypeScript
TypeScript : Debug code
TypeScript
