Replace lodash with native JS functions #45
Replies: 4 comments 3 replies
-
witch one of their functions u want? |
Beta Was this translation helpful? Give feedback.
-
Great idea as lodash has quite some security issues |
Beta Was this translation helpful? Give feedback.
-
So there is a nifty eslint plugin I use in my project called eslint-plugin-you-dont-need-lodash-underscore which will spit out warnings and suggestions on replacements. I LOVE lodash and have used it for well over 10 years but alas, training myself on how to work with arrays and objects using the latest and greatest techniques is the way to go deepClone( ) --> structuredClone( ) seems to work, but if you have a ref( ) value you may need to call structuredClone(toRaw(object.value)) to actually get it to work in certain situations |
Beta Was this translation helpful? Give feedback.
-
If you even want to preserve lodash-like you could check this package or even check out this page You don’t need Lodash |
Beta Was this translation helpful? Give feedback.
-
Replace lodash with native JS functions
Beta Was this translation helpful? Give feedback.
All reactions