3 ms·
It’s so awful in JavaScript that they made new comparison operators that don’t do it. And now it’s pretty much universal that you set == and != to be linting er
by Waterluvian 3y ago
It’s so awful in JavaScript that they made new comparison operators that don’t do it. And now it’s pretty much universal that you set == and != to be linting errors and just never use them.
They’re good for professional and hobby code golf though.
- l72 3y agoExcept for when you to `var != null` to make sure var isn't null OR undefined since those are two different things in javascript and undefined will implicitly be converted to null here.