Inputs can be undefined, and if so, the default is returned.
Default object type.
Default values (if not specified in inputs).
Optionalinputs: undefinedOverriding values (changes to make).
Optionalrecursive: booleanOptional. Whether to merge the object recursively. Default false.
OptionalmergeArrays: booleanResulting object with all the defaults and inputs keys with
either default values or input values, as appropriate.
Passing recursive as false means that the input type must be a Partial
(not RecursivePartial).
Optionalrecursive: falseOptionalmergeArrays: booleanPassing recursive as true means that the input type may actually be a
RecursivePartial.
OptionalmergeArrays: booleanUniversal overload.
Optionalinputs: IOptionalrecursive: booleanOptionalmergeArrays: boolean
Returns an updated version of
defaultsmerged with the contents ofinputs.Useful for parsing objects passed to functions with extra, optional options. Preserves all input properties.
Overloaded for better typing dependent on recursion.
Since
0.1.0
Since
PKG_VERSION — Added mergeArrays param.