DEV Community

Discussion on: Null-checking in JavaScript

Collapse
 
ekansss profile image
ekanSSS

It's more a bright exemple of how to make simple things looks complicated because in javascript if(tokenInfo) will check if variable is either :

  • empty string ""
  • 0
  • undefined
  • null
  • false