Reports unnecessary comparisons with
.indexOf()
expressions. An example of such an expression is comparing the result of
.indexOf()
with numbers smaller than -1.