Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
undefined vs. typeof vs. in vs. hasOwnPropertye
(version: 0)
Object lookup performance
Comparing performance of:
undefined vs typeof vs in vs hasOwnProperty vs bool
Created:
5 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var obj = { a: 1, b: 2, c: 3, d: 4, e: 5 };
Tests:
undefined
obj.d;
typeof
'undefined' !== typeof obj.d;
in
'd' in obj;
hasOwnProperty
obj.hasOwnProperty( 'd' );
bool
!! obj.d;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (5)
Previous results
Fork
Test case name
Result
undefined
typeof
in
hasOwnProperty
bool
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
undefined vs. typeof vs. in vs. hasOwnProperty
undefined vs. typeof vs. in vs. hasOwnProperty 2
undefined vs. typeof vs. in vs. hasOwnProperty big object
undefined vs. typeof vs. in vs. hasOwnProperty 222
hasOwn vs hasOwnProperty vs typeof
Comments
Confirm delete:
Do you really want to delete benchmark?