Test case name | Result |
---|---|
typeof x === "undefined" | |
x === undefined | |
x == undefined | |
x == null |
Test name | Executions per second |
---|---|
typeof x === "undefined" | 14431740.0 Ops/sec |
x === undefined | 5395423.0 Ops/sec |
x == undefined | 5355204.0 Ops/sec |
x == null | 14574360.0 Ops/sec |