mergeDefault

export function mergeDefault(def: unknown, given: unknown): unknown;
export function mergeDefault(def: unknown, given: unknown): unknown;
Sets default properties on an object that aren't already specified.
NameTypeOptionalDescription
defunknownNoDefault properties
givenunknownNoObject to assign defaults to