You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👍 thanks for pointing it out. As stated in the very beginning of the doc:
Please note that the examples used below are just showing you the native alternative of performing certain tasks. For some functions, Lodash provides you more options than native built-ins. This list is not a 1:1 comparison.
👍 thanks for pointing it out. As stated in the very beginning of the doc:
Please note that the examples used below are just showing you the native alternative of performing certain tasks. For some functions, Lodash provides you more options than native built-ins. This list is not a 1:1 comparison.
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: