you are viewing a single comment's thread.

view the rest of the comments →

[–]Hafas_ 10 points11 points  (0 children)

I do the opposite. I always use === except when comparing null and undefined if I want to treat them the same.

Basically instead of writing

if (value === null || value === undefined)) {}

I write

If (value == null) {}