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

    Function fromArrayWith

    • 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

      • V

      Parameters

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

        Function to merge values when found a duplicate key.

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

      A new Map made from the entries.