Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
... is undefined, null, or "", or any other falsy valuue... then the if will short circuit and not perform any of the other checks. This means it is impossible for the tokenInfo !== undefined check (and others) to ever evaluate to true.
So that block of code is identical to this block:
if(tokenInfo){}
The other checks are unnecessary as they won't change the function at all.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Looking at this block of code...
If the first check...
... is
undefined
,null
, or""
, or any other falsy valuue... then the if will short circuit and not perform any of the other checks. This means it is impossible for thetokenInfo !== undefined
check (and others) to ever evaluate to true.So that block of code is identical to this block:
The other checks are unnecessary as they won't change the function at all.