I am aware that it's prefereable to test equality with ===
because of the nature of truthiness and falseyness in JS, but what are the reasons to use ==
?
Is ==
faster? It doesn't type check, but it does coërce types, which sounds costly.
I suppose if you have to deal with really old browsers that don't have strict equality, but that seems like a super edge case.
Does anyone have reasons for using ==
?