JavaScript Deep Merge

I recently shared how you can merge object properties with the spread operator but this method has one big limitation:  the spread operator merge isn’t a “deep” merge, meaning merges are recursive.  Moreover nested object properties aren’t merged — the last value specified in the merge replaces the last, even when there are other properties that should exist. const defaultPerson = { name: […]
The post JavaScript Deep Merge appeared first on David Walsh Blog.