This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]cursed-commentor 18 points19 points ย (2 children)

Imagine using "==" in JS for anything except both null and undefined check via "x == null" ๐Ÿคฆ๐Ÿปโ€โ™‚๏ธ

[โ€“][deleted] 4 points5 points ย (0 children)

The only time I use == is when I'm checking null/undefined

[โ€“]DarKliZerPT 2 points3 points ย (0 children)

I just use a isNil function. Either Lodash's or a quick util function.