Hex Core JS
    Preparing search index...

    Function mapObjectEntries

    • Map function for object entries. Allows for redefining keys and values. Works like Array.prototype.map but key-value pairs are passed to and returned by the map function.

      Type Parameters

      Parameters

      • object: T

        The object to map.

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

        The transformation function to use for each entry.

      Returns Record<NK, NV>