Test name | Executions per second |
---|---|
test truth | 861612160.0 Ops/sec |
test undefined | 6699871.0 Ops/sec |
test hasOwnProperty | 73582040.0 Ops/sec |
var n = {};
while(true) {
if(!n.foo)
break;
}
var n = {};
while(true) {
if(n.foo===undefined)
break;
}
var n = {};
while(true) {
if(!n.hasOwnProperty('foo'))
break;
}