Overview / deepDefaults
deepDefaults()
deepDefaults<
T>(target, ...sources):T
Merges the properties of the source objects into the target object, recursively applying defaults.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
target | T | The target object to apply defaults to. |
...sources | any[] | The source objects containing default values. |
Returns
T
A new object with the merged properties.