Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Check existence
(version: 2)
Comparing performance of:
typeof vs undefined vs void(8) vs !! vs if
Created:
9 years ago
by:
Registered User
Jump to the latest result
Tests:
typeof
typeof window !== 'undefined'
undefined
window !== undefined
void(8)
window !== void(8)
!!
!!window
if
if (window) {}
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (5)
Previous results
Fork
Test case name
Result
typeof
undefined
void(8)
!!
if
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 25
Empty vs check
?. operator vs. getProperty
if undefined comparison
if undefined comparison with binary
Comments
Confirm delete:
Do you really want to delete benchmark?