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

    Function updateWithKey

    • Modifies or removes entry with the key, or does nothing if there isn't.

      Type Parameters

      • K
      • V

      Parameters

      • updater: (key: K) => (oldValue: V) => Option.Option<V>

        Function to map the value. Also the key will be passed to. When this returned None, the entry will be removed.

      Returns (key: K) => (m: Map<K, V>) => Map<K, V>

      A new Map with the replaced entry, or as is if there isn't.