This inspection reports on any JavaScript equality comparisons which may cause unexpected type coercions.
In JavaScript, == and !=
cause type coercions, which can cause unexpected evaluations (e.g. 0 == false
= true.
== or != comparisions
to 0, '',
null, true,
false, or undefined will
be flagged by this inspection.