Skip to content

remove

remove<K, V>(key): (m) => ReadonlyMap<K, V>

Defined in: Utils/Dict.ts:202

Returns a new dictionary with the given key removed. If the key does not exist, the dictionary is returned unchanged.

K

V

K

(m): ReadonlyMap<K, V>

ReadonlyMap<K, V>

ReadonlyMap<K, V>

pipe(Dict.fromEntries([["a", 1], ["b", 2]]), Dict.remove("a"));
// ReadonlyMap { "b" => 2 }