effect-io-ai

Package: effect
Module: Filter

Filter.has

Creates a Filter that passes inputs whose has(key) method returns true for the specified key.

When to use

Use to keep inputs that expose a has method, such as Set or Map, when they contain a required key.

See

Signature

declare const has: <K>(key: K) => <Input extends { readonly has: (key: K) => boolean; }>(input: Input) => Result.Result<Input, Input>

Source

Since v4.0.0