Function mergeDeep

  • Accepts multiple objects and merges their key-value pairs recursively. Any values set to undefined will be removed.

    Note that order matters! Each input object will overwrite the properties of the previous objects.

    Type Parameters

    • const T extends object

    Parameters

    • Rest...inputs: (Readonly<T> | Readonly<PartialDeep<T, {
          recurseIntoArrays: true;
      }>> | Readonly<Partial<T>>)[]

    Returns T