rspec/rules/S1230/rule.adoc

3 lines
243 B
Plaintext
Raw Normal View History

The == and != operators do type coercion before comparing. This is bad because it causes ' \t\r\n' == 0 to be true. This can mask type errors. It is best to not use == and != and to always use the more reliable === and !== operators instead.