- mergeDeep<const T extends object>(
...inputs: (
| Readonly<T>
| Readonly<PartialDeep<T, { recurseIntoArrays: true }>>
| Readonly<Partial<T>>
)[],
): T Parameters
- ...inputs: (
| Readonly<T>
| Readonly<PartialDeep<T, { recurseIntoArrays: true }>>
| Readonly<Partial<T>>
)[]
Returns T
Accepts multiple objects and merges their key-value pairs recursively. Any values set to undefined will be removed.
Note that order matters! Each input object will overwrite the properties of the previous objects.