4 ms·
Not in this case, but it's commonly accepted that == is "broken" in JavaScript, and === should be the equality operator of choice most of the time. The one cas
by tlrobinson 15y ago
Not in this case, but it's commonly accepted that == is "broken" in JavaScript, and === should be the equality operator of choice most of the time.
The one case where I sometimes use == is if I want to check for "null" or "undefined". Even then it scares me.