export Function
defaults ​
Sets the default values of the default object to the context
Constructor ​
ts
defaults( _defaults, context, topLayer, force )
Parameter | Type | Description |
---|---|---|
_defaults | T | The default values. |
context = {} | any | The context to replace with defaults. |
topLayer? | boolean | Pass true to ignore nested objects. |
force? | boolean |
Return: T