Recursively merges two objects of compatible types.
Properties of source are merged into corresponding properties of target.
Properties with object values are recursively merged.
Properties with primitive values are overridden by the values of source.
Recursively merges two objects of compatible types. Properties of
source
are merged into corresponding properties oftarget
. Properties with object values are recursively merged. Properties with primitive values are overridden by the values ofsource
.Typeparam
T - The type of the target object.
Example