Recursively deeply merges multiple objects into a single new object. Does not mutate the source objects.
The objects to merge
A new deeply merged object
const merged = deepMerge({ a: { x: 1 } }, { a: { y: 2 } }); // { a: { x: 1, y: 2 } } Copy
const merged = deepMerge({ a: { x: 1 } }, { a: { y: 2 } }); // { a: { x: 1, y: 2 } }
Recursively deeply merges multiple objects into a single new object. Does not mutate the source objects.