3 ms·
I don't know who uses `!= null`, but just... Ban the != operator from your codebase altogether using a lint rule, in favour of !==. The severity of the bugs you
by Vinnl 6y ago
I don't know who uses `!= null`, but just... Ban the != operator from your codebase altogether using a lint rule, in favour of !==. The severity of the bugs you'll avoid very much outweigh the muscle memory you'll need to develop to type a comparison to the actual value you want to match against.