3 ms·
I've always found == to be very useful when comparing undefined, because undefined == null. It's very rare that I want to treat undefined and null separately (
by PotatoEngineer 15y ago
I've always found == to be very useful when comparing undefined, because undefined == null. It's very rare that I want to treat undefined and null separately (unless one or the other means there was an error earlier).
- funksta 15y agoThat's the only reasonable use for ==, IMO.