Creates new object with transformed values

  • Type Parameters

    • V
    • U

    Parameters

    • f: (v: V) => U

      Function to transform values

    • x: Record<string, V>

      Source object

    Returns Record<string, U>

    Object with transformed values