Skip to main content

Function: setContainsValue()

function setContainsValue<Type>(set: ReadonlySet<Type>, item: Type): boolean;

Defined in: _internal/set-membership.ts:11

Check whether a Set contains a candidate value while intentionally exposing only plain-boolean semantics at call sites.

Type Parametersโ€‹

Typeโ€‹

Type

Parametersโ€‹

setโ€‹

ReadonlySet<Type>

itemโ€‹

Type

Returnsโ€‹

boolean