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

    Function partition

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

      Type Parameters

      • V

      Parameters

      • pred: (value: V) => boolean

        Predicate whether picks an item.

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

      Two Maps, matched and dropped.