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 true means that the input type may actually be a
RecursivePartial.
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