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
Maintenance: Drop Lodash #26
Comments
Hey, I was bored so I took a stab at this. My $0.02 is you should leave lodash alone — here's why:
|
possibly useful repo: https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore |
structuredClone is too young anyway to be used in a wide project, but in 1/2 years I think the the default node types would be improved to keep type information. Or it could be wrap in a one liner like: |
I'm inclined to keep what we have for now, since:
Happy to reconsider, but using two small functions from lodash seems fine in my opinion. |
Lodash is a big, regularly updating dep. We only use 2 modules from it, and it #21 we discussed dropping lodash for other techniques.
Describe the solution you'd like
Replace
lodash.clone
andlodash.isequal
with simple JS-built-in options such asstructuredClone
orJSON.parse(JSON.stringify
andObject.isEqual
Describe alternatives you've considered
Leave lodash alone :leave-britney-gif:
The text was updated successfully, but these errors were encountered: