Creates new object with transformed keys

  • Type Parameters

    • T extends Record<string, any>

    Parameters

    • f: (v: string) => string

      Function to transform keys

    • x: T

      Source object

    Returns T

    Object with transformed keys