Documents for @litert/utils-object
    Preparing search index...

    Function deepMerge

    • Merge two objects recursively. Use the values in the second object when conflicts occur.

      Type Parameters

      • T1 extends IObject
      • T2 extends IObject

      Parameters

      • obj1: T1

        The first object to merge

      • obj2: T2

        The second object to merge

      • opts: IDeepMergeOptions = {}

        The options for the merge operation

      Returns IMergeObject<T1, T2>

      The new merged object, without modifying the original two objects.