Hex Core JS
    Preparing search index...

    Function mapObjectValues

    • Map function for objects. Allows for redefining values. Works like Array.prototype.map but key-value pairs are passed to the map function, which returns a new value for the key.

      Type Parameters

      Parameters

      • object: T

        The object to map.

      • map: <K extends string | number | symbol>(k: K, v: T[K]) => R

        The transformation function to use for each entry.

      Returns Record<keyof T, R>