0

Is there a difference in checking like so:

if (article.geolocation === null || article.geolocation === undefined){...}

vs.

if (!article.geolocation){...}

I know its a simple question. I am just unsure.

Edit: These two ifs produce different results for me.

Divide by Zero
  • 1,188
  • 1
  • 13
  • 30

0 Answers0