What\'s the best way of checking if an object property in JavaScript is undefined?
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')