News for hackers. Stuff that matters.
Re:JavaScript Performance MythBusters (via jsPerf) by tikhonj on Saturday March 17, 2012 @08:54AM (#3716966)
The same is true with undefined. You should use void 0 rather than undefined because undefined is just a normal variable which happens to be undefined unless somebody defines it, while void 0 is always going to be undefined.
Re:JavaScript Performance MythBusters (via jsPerf) by jdd on Saturday March 17, 2012 @03:04PM (#3717867)
There is absolutely no need to use `void 0` you can simply use `typeof` or create a local `undefined` var. Many libs do this in their IIFE `(function(undefined) { /* your code */ }());`. The point was there isn't a real world performance concern to justify using one over the other.