"Type of undefined" vs "=== undefined" (v62)

Revision 62 of this benchmark created on


Setup

var a = [{
      lol: "skates"
    }],
      b = [],
      c = [{
        lol: "skates"
      }],
      d = [],
      e = {}, u;

Test runner

Ready to run.

Testing in
TestOps/sec
typeof undefined
typeof(a) === 'undefined';
ready
=== undefined
a === undefined;
ready
=== undefined(local)
a === u;
ready
void 0
a === void 0;
ready
not
!a;
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.