Skip to content
Commit a439c3e6 authored by Björn Geuken's avatar Björn Geuken
Browse files

[frontend] Add js style rule: Require triple equals

Use === instead of ==. The == and != operator are not only comparing two
values. But also trying to convert the variable on the right side, if their
types are not identical. This can be quite a complex logic due to the
various combinations[*] that are possible.

To simplify things and avoid confusion for people that are js experts,
who is?, it's better to stick with ===.

https://dorey.github.io/JavaScript-Equality-Table/
parent f3ec7fcd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment