4 ms·you can also use... if (foo === void 0) ... //or var undef; ... if (foo === undef) ...by tracker1 11y agoyou can also use... if (foo === void 0) ... //or var undef; ... if (foo === undef) ...