Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
checking for key
(version: 0)
Comparing performance of:
js in vs js property vs ramda has
Created:
3 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/ramda/0.26.1/ramda.min.js"></script>
Script Preparation code:
var test = { hi: null, hello: undefined, goodbye: 1, }
Tests:
js in
if ('hi' in test) console.log('yes')
js property
if (test.hasOwnProperty('hi')) console.log('yes')
ramda has
if (R.has('hi', test)) console.log('yes')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
js in
js property
ramda has
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:
ramdajs contains
ramdajs contains
omit property
Lodash vs Ramda fromPairs
Comments
Confirm delete:
Do you really want to delete benchmark?