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

    Function update

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

      Type Parameters

      • V

      Parameters

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

        Function to map the value. When it returned None, the entry will be removed.

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

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