Which is better `undefinedVar === void 0` or `typeof undefinedVar === 'undefined'`?
here says: http://www.2ality.com/2013/04/check-undefined.html void 0 is safe.
here says: http://www.2ality.com/2013/04/check-undefined.html void 0 is safe.
undefined = 'lol';As you can imagine, this didn't actually affect anyone.
http://jsperf.com/check-for-undefined-argument
On Chrome 35, looks like comparing to void 0 is a bit faster. Would love some more samples though.