@shopify/cli-kit
    Preparing search index...

    Function deepMergeObjects

    • 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: unknown[], sourceArray: unknown[]) => unknown[] = unionArrayStrategy

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

      Returns T1 & T2

      A Javascrip tobject with th emerged objects.