formsy-react icon indicating copy to clipboard operation
formsy-react copied to clipboard

Use alternatives for lodash.set / lodash.get which are smaller & faster

Open felixmosh opened this issue 4 years ago • 2 comments

dlv - alternative for lodash.get dset - alternative for lodash.set nestie - unwrap string notation to object / array

@rkuykendall WDYT?

felixmosh avatar Sep 13 '20 07:09 felixmosh

I'm open to the idea, but hesitant. A lot of code goes into lodash when you dive into it, and I know things like isPlainObject are especially complicated to re-create. If you, or someone else wants, I'd be happy to check out a branch that tries this out. It shouldn't take long to just replace things like you mentioned above. And if it goes well, I could even see us just moving them into formsy natively, since the source for those you linked is very very short.

rkuykendall avatar Sep 20 '20 14:09 rkuykendall

I will try it when I have time for it :]

felixmosh avatar Sep 21 '20 07:09 felixmosh