Skip to main content

mergeDeep

Callable

  • mergeDeep(destination: Record<string, unknown>, ...sources: Record<string, unknown>[]): Record<string, unknown>

  • Deep merge two objects.


    Parameters

    • destination: Record<string, unknown>

      The destination object.

    • rest...sources: Record<string, unknown>[]

      An array of source objects.

    Returns Record<string, unknown>

    • The merged object.