• Deep merges the two objects and returns a new object with the merge result.

    Type Parameters

    • T1
    • T2

    Parameters

    • lhs: Partial<T1>

      One of the objects to be merged.

    • rhs: Partial<T2>

      Another object to be merged.

    • arrayMergeStrategy: ((destinationArray, sourceArray) => unknown[]) = unionArrayStrategy

      Strategy used to merge the array typed fields. Union strategy is used by default to avoid duplicated elements.

        • (destinationArray, sourceArray): unknown[]
        • Parameters

          • destinationArray: unknown[]
          • sourceArray: unknown[]

          Returns unknown[]

    Returns T1 & T2

    A Javascrip tobject with th emerged objects.