Javascript Comparison Operators != vs !==
Human readable text about their differences Using !== and === will do a more strict compare than ==/!=. The former will check if the objects being compared are of the same type, as well as if the values matches. Using == will make it possible for an implicit cast to be made, see the below examples. What does the standard say? 11.9.6 … Read more