ts-utils
    Preparing search index...

    Function map

    • Creates an object with entries generated by running each own enumerable entry of object through iteratee. The iteratee is invoked with a tuple argument: [key, value].

      Type Parameters

      • Key extends string | number | symbol

        Type of the keys that composed the source.

      • Value

        Type of the values that composed the source.

      • NewKey extends string | number | symbol

        Type of the transformation apply to the keys that composed the source.

      • NewValue

        Type of the transformation apply to the values that composed the source.

      Parameters

      Returns Record<NewKey, NewValue>

      Returns the new mapped object.