• Transform the specified object into a different shape by transforming each property with the key transformer function. Does not change the orignal object but create a new object.

    Parameters

    • obj: object

      Object to transform

    • keyTransformer: ((key) => string | number | symbol)

      Transformation function

        • (key): string | number | symbol
        • Parameters

          • key: string | number | symbol

          Returns string | number | symbol

    Returns object