Lodash - _.omit going away for good

in technology •  7 years ago 

in one of the recent issue#2930 in Lodash its been highlighted that omit method is being removed in version 5.0.0.

Why it is being removed

As per @jdalton The omit method is less optimal and more complex since it has to pull in the universe (inherited and own enumerable string key properties and symbols) and then exclude a handful of properties. hence it makes a lot impact in performance

What's alternative

The alternative are quite simple on the other hand, if you love to use es6 spread operator then you can simple replace omit method with that, or you can also use _.pick or _.pickBy

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

@abhirathore2006, congratulations on making your first post! I gave you an upvote!
Please take a moment to read this post regarding commenting and spam. (tl;dr - if you spam, you will be flagged!)