Test name | Executions per second |
---|---|
typeof | 10547527.0 Ops/sec |
strict equal undefined | 3621216.0 Ops/sec |
equal null | 5291732.5 Ops/sec |
var foo = undefined;
typeof foo === "undefined";
var foo = undefined;
foo === undefined
var foo = undefined;
foo == null