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
✅ @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!)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit