Hex Core JS
    Preparing search index...

    Function mapObjectKeys

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

      Type Parameters

      Parameters

      • object: T

        The object to map.

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

        The transformation function to use for each entry.

      Returns Record<NK, T[keyof T]>