Function mergeDeep()
mergeDeep<
Target,Sources>(target:Target, ...sources:Sources):Merge<Target,Sources>
Source: object.utils.ts
Recursively merges two or more objects.
If a property is defined in two objects and the values are both objects, they are merged recursively, if they are both arrays, they are concatenated, otherwise the value of the second object overrides the value of the first.
Type Parameters
Target
Target extends Record<PropertyKey, unknown>
Sources
Sources extends Record<PropertyKey, unknown>[] = Target[]
Parameters
target
Target
The target object to merge the other objects with.
sources
...Sources
The objects to merge with the target object.
Returns
Merge<Target, Sources>
The merged object.