Skip to content

export Function

defaults ​

Sets the default values of the default object to the context

Constructor ​

ts
defaults( _defaults, context, topLayer )
ParameterTypeDescription
_defaultsanyThe default values.
context = {}anyThe context to replace with defaults.
topLayer?booleanPass true to ignore nested objects.

Return: any