Test name | Executions per second |
---|---|
explicit null check | 8517670.0 Ops/sec |
explicit null non-check | 8507424.0 Ops/sec |
explicit undefined check | 8685057.0 Ops/sec |
explicit undefined non-check | 8519780.0 Ops/sec |
implicit undefined check | 8487093.0 Ops/sec |
implicit undefined non-check | 8399708.0 Ops/sec |
var one = { a: 123, b: null }
var two = { a: 123, b: undefined }
var three = {a: 123}
one.b == null
one.b != null
two.b == null
two.b != null
three.b == null
three.b != null