Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
lose comparison and type coercion vs strict 2 x strict comparison
(version: 0)
Comparing performance of:
const isNil = value == null; vs const myIsNil = value === null || value === undefined;
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
const value = 1;
Tests:
const isNil = value == null;
const isNil = value == null;
const myIsNil = value === null || value === undefined;
const myIsNil = value === null || value === undefined;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
const isNil = value == null;
const myIsNil = value === null || value === undefined;
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!
Comments
Confirm delete:
Do you really want to delete benchmark?