rspec/rules/S1230/rule.adoc
2021-06-08 14:23:48 +02:00

3 lines
243 B
Plaintext

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.