Package: effect
Module: Filter
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
fromPredicate for custom predicate filters or inputs without a
has methodPredicate.hasProperty for guarding property presence instead of
calling an input’s has methodSignature
declare const has: <K>(key: K) => <Input extends { readonly has: (key: K) => boolean; }>(input: Input) => Result.Result<Input, Input>
Since v4.0.0