Skip to content

has

has<A>(item): (s) => boolean

Defined in: Utils/Uniq.ts:69

Returns true if the collection contains the given item.

A

A

(s): boolean

ReadonlySet<A>

boolean

pipe(Uniq.fromArray([1, 2, 3]), Uniq.has(2)); // true
pipe(Uniq.fromArray([1, 2, 3]), Uniq.has(4)); // false