mariocasciaro / object-path

A tiny JavaScript utility to access deep properties using a path (for Node and the Browser)
MIT License
1.06k stars 84 forks source link

[Suggestion] Deep merge like in object-path-immutable? #120

Open joezappie opened 1 year ago

joezappie commented 1 year ago

Since this library is a dependency of your immutable version, I think it would make sense to move functions like merge/assign/update to this library so they can both have similar functionality, except immutability.

I'd like to have the option to either overwrite(set) or merge, which seems possible with the immutable version. I cant use the immutable version of this library however, as I want to update the original object for performance instead of cloning it.