-
Notifications
You must be signed in to change notification settings - Fork 351
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
⛳ Goal: Almost feature parity with lodash #91
Comments
Was just checking whether we can replace lodash with es-toolkit and noticed that we're using the lodash const pickedObject = pick(object, [
'firstLevel.secondLevel.thirdLevel',
'firstLevel.anotherKey.thirdLevel',
'firstLevel.anotherKey.anotherKey',
]) Would it make sense for es-toolkit to provide a similar function? Maybe an API like this could work with type safety on the keys? const pickedObject = pickDeep(object, [
['firstLevel', 'secondLevel', 'thirdLevel'],
['firstLevel', 'anotherKey', 'thirdLevel'],
['firstLevel', 'anotherKey', 'anotherKey'],
]) |
I’ve noticed another major lodash feature seemingly not being supported. I very much enjoy how concise lodash makes the following code: const email = 'test@example.com'
// ...
const user = find(users, { email })
// as opposed to
const user2 = find(users, user => user.email === email) |
Also did a short scan of my codebase and would love to replace lodash, mainly for the bad types of it.
Would love to hear your opinions. I don't think those necessarily need to be implemented, but I think extending and making the "not gonna implement" list as well, will be beneficial. |
It would be nice to have this pkg be a drop-in replacement for lodash and lodash-es. For now, I can't migrate because |
Just wondering if you could add support for |
Hello! We're striving for perfect compatibility with lodash through If you add comments to this issue, we will prioritize adding support for your case. For more details, please visit our compatibility page. |
Hello I have attempted to migrate a large project to es-toolkit, but I got tired of manually checking whether a function has been migrated or not. |
It should be fine to just replace lodash or lodash-es to es-toolkit/compat when we achieve full compatibility with lodash. While we're on the way, and many frequently used functions are migrated, we expect the migration to be complete by the end of this year. |
I'm iterating on a pretty naive codemod here in case it helps: https://www.hypermod.io/sandbox/cm036l7jf0001l20cf89mvmev I'm going to go in and add proper coverage as per the support table here later today :) |
Ahh I was looking around for good utlity libs and found es-toolkit. This seems promising but the functionality over lodash seems not on par. I was very sad to find out the most used object util |
The usecase for |
For easy migration from lodash to es-toolkit, our goal is to achieve almost complete feature parity with lodash.
For details, please refer to our compatibility documentation.
We intend to migrate most of the functions that lodash offers, with the following exceptions:
sortedUniq
.If you encounter any lodash features that could complicate migration to es-toolkit, please inform us via comments on the issue.
The text was updated successfully, but these errors were encountered: