@mikuroxina/mini-fn
    Preparing search index...

    Function mapKeys

    • Transforms the Map with replacing keys. If there duplicate keys on replaced, the last one will take precedence.

      Type Parameters

      • K1
      • K2

      Parameters

      • mapper: (key: K1) => K2

        Function to transform keys.

      Returns <V>(m: Map<K1, V>) => Map<K2, V>

      A new Map with new keys.