Home / Vulnerability Database / JavaScript : Possible typo when comparing types
JavaScript

JavaScript : 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 JavaScript : Possible typo when comparing types in your application?

See also

JavaScript

JavaScript : Null salt

JavaScript

JavaScript : Empty encryption key

JavaScript

JavaScript : Unsafe Azure access control