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

    Function fromArrayWithKey

    • Creates a new Map from the array of dictionary entries. If there are duplicate keys, combiner will be called to merge two values.

      Type Parameters

      • K
      • V

      Parameters

      • combiner: (key: K) => (newValue: V) => (oldValue: V) => V

        Function to merge values when found a duplicate key. Also the duplicated key will be passed.

      Returns (arr: readonly Tuple.Tuple<K, V>[]) => Map<K, V>

      A new Map made from the entries.