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

    Function partitionWithKey

    • Splits the Map into two, matched and dropped by the predicate.

      Type Parameters

      • K
      • V

      Parameters

      • pred: (key: K) => (value: V) => boolean

        Predicate whether picks an entry.

      Returns (m: Map<K, V>) => [satisfied: Map<K, V>, dropped: Map<K, V>]

      Two Maps, matched and dropped.