[undefined] === true returns false.
[undefined] === true
false
if ([undefined]) { console.log('is true') }
prints is true to the console.
is true
How does this make sense?
Aucun commentaire:
Enregistrer un commentaire