Test name | Executions per second |
---|---|
typeof | 6501529.5 Ops/sec |
strict equal undefined | 3219038.5 Ops/sec |
equal null | 6580301.0 Ops/sec |
var foo = undefined;
typeof foo === "undefined";
var foo = undefined;
foo === undefined
var foo = undefined;
foo == null