Merges the properties of two objects recursively. If properties in both objects are of type 'object', they will be merged deeply. Otherwise, properties in the second object will overwrite properties with the same keys in the first object.

  • Parameters

    • obj1: Record<string, unknown>

      The target object to be merged into.

    • obj2: Record<string, unknown>

      The source object providing properties to merge.

    Returns Record<string, unknown>

    The merged object containing properties from both input objects.