-
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
feat(uniqueId): Add uniqueId to compat layer #714
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
The functions in compat layer should pass the lodash’s test code. Please refer to the #732 PR! |
And reading this issue will be helpful! |
Hi! @dayongkr When defining utility functions in the compat layer, we should follow lodash's test! Thank you for your good comments. The uniqueId you created was more readable, so I changed my code a bit. And in my opinion, it is better not to verify lodash's third test code because it does not match es-toolkit's design principles. What do you think? Give you ref: Design Principles |
Thank you for reviewing my opinion. I think that seems to refer to cases where JavaScript implicitly converts types at the language level(e.g. |
As @dayongkr mentioned, I think we should handle that test case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
Implemented lodash's uniqueId.
If there is anything that needs supplementation, please give me feedback.
I will fix it right away.
Thank you.