6 ms·
Is there ever a reason / use case in JS to NOT use the strict comparison operators (=== and !==)? Browser support? Performance? Logic tricks?
by sobes 13y ago
Is there ever a reason / use case in JS to NOT use the strict comparison operators (=== and !==)? Browser support? Performance? Logic tricks?
- chenglou 13y agoOnly one that I can think of, and a frequent one: if (a == null) bla; This checks for null and undefined.