• Given two objects deeply merges them, if an object is an array it will merge the array values! Modifies the base object in place and also returns it. Guarantees some type safety by requiring objects to merge to be from the same type (allows undefined)

    Type Parameters

    Parameters

    • base: T
    • Optionaladdon: DeepPartial<T> | Partial<T>

    Returns T

    deepMergeObject to create a new merged object

  • Given two objects deeply merges them, if an object is an array it will merge the array values! Modifies the base object in place and also returns it. Guarantees some type safety by requiring objects to merge to be from the same type (allows undefined)

    Type Parameters

    Parameters

    • base: undefined | T
    • Optionaladdon: DeepPartial<T> | Partial<T>

    Returns undefined | T

    deepMergeObject to create a new merged object