Skip to content

has

has<K>(key): <V>(m) => boolean

Defined in: Utils/Dict.ts:108

Returns true if the dictionary contains the given key.

K

K

<V>(m): boolean

V

ReadonlyMap<K, V>

boolean

pipe(Dict.fromEntries([["a", 1]]), Dict.has("a")); // true
pipe(Dict.fromEntries([["a", 1]]), Dict.has("b")); // false