Merges two objects, with right object taking precedence

  • Type Parameters

    • T extends Record<string, any>

    Parameters

    • a: T

      Left object

    • b: T

      Right object

    Returns T

    Merged object with b's properties overriding a's