DEV Community

Discussion on: 14 functions I made to dump lodash and reduce my bundle size...

Collapse
 
quozzo profile image
Quozzo

I'm not sure if this is a smaller implementation of your merge function, except mine returns a new value instead of mutating the first value passed in.

gist.github.com/Quozzo/3715ad741cf...

If you use Object.assign with an empty object/array as the first argument then it should be a non-issue either way.