loading...

re: Null-checking in JavaScript VIEW POST

FULL DISCUSSION
 

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
Code of Conduct Report abuse