Function assignWithDefaults

  • Type Parameters

    • To extends Record<string | number | symbol, any>
    • From extends Partial<To>

    Parameters

    • to: To
    • from: From
    • defaults: Partial<To> = to

    Returns void