Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
lodash pick vs omit vs my stuff
(version: 0)
Comparing performance of:
extra stuff vs pick vs omit
Created:
4 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/lodash@3.10.0/index.min.js"></script>
Script Preparation code:
var a = { foo: "foo", bar: undefined, do: 'test', egg: 'egg' };
Tests:
extra stuff
const keys = Object.keys(a); const filter = keys.filter((e) => e !== 'id'); const result = _.pick(a, filter);
pick
_.pick(a, _.identity)
omit
_.omit(a, ['id'])
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
extra stuff
pick
omit
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:
lodash pick vs omit
lodash.head() vs [0] updated with optional chaining
lodash omit vs spread omit modified
lodash noop vs new function
lodash noop vs new function vs optional chaining
Comments
Confirm delete:
Do you really want to delete benchmark?