SyntaxFix
Write A Post
Hire A Developer
Questions
Compare with void 0, for terseness.
void 0
if (foo !== void 0)
It's not as verbose as if (typeof foo !== 'undefined')
if (typeof foo !== 'undefined')