Returns a function that adds/updates property on object

  • Type Parameters

    • K extends string
    • T
    • U

    Parameters

    Returns (o: U) => U & Record<K, T>