-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_.pick is incorrectly simplified, Lodash accepts a path #308
Comments
👍 thanks for pointing it out. As stated in the very beginning of the doc:
we can fix the example though. |
Please update the example and clearly state what Lodash does extra, so that devs see that using Lodash still is very valuable for these things. Devs don't seem to read these side notes these days, as I have enough explaining to do why using Lodash is still a good thing, just because they see things like this, and then start to think that Lodash should be deprecated because you can do everything natively! The native way isn't always readable, and readability > not using libraries. |
The Lodash version of pick accepts a path, thus this is perfectly doable in Lodash:
But there's no equivalent in ES6.
By the way,
_.pickBy
is displayed incorrectly since it's missing the second parameter which is a function to evaluate if prop will be picked.The text was updated successfully, but these errors were encountered: