3 ms·
I'm mostly a back-end guy... does it really matter if you you use != vs !== when you know that both operands have the same type in javascript? In this case, yo
by douche 11y ago
I'm mostly a back-end guy... does it really matter if you you use != vs !== when you know that both operands have the same type in javascript? In this case, you've got string literals, so (flying spaghetti monster, I hope there won't be any type conversions going on)
- lmm 11y agoIt matters for anyone who maintains your code. "!=" is a big red flag, better to consistently use "!==".