Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Object.keys.filter vs Object.values.join
(version: 0)
Comparing performance of:
Object.keys.filter vs Object.values.join
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
window.foo = { one: 'one', two: 'two', three: 'three', four: 'four', five: 'five' };
Tests:
Object.keys.filter
Object.keys(window.foo).filter(key => window.foo[key])
Object.values.join
Object.values(window.foo ?? []).join('');
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Object.keys.filter
Object.values.join
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:
Array.prototype.filter vs Lodash filter
filter vs object
slice vs filter in js2
Test if object is empty
Comments
Confirm delete:
Do you really want to delete benchmark?