The IterPredicate class provides utility functions for creating predicate functions for Iterable properties.
IterPredicate
v1.1.3
Static
Creates a predicate function that checks if a specific item is not present in an Iterable.
The item to check for.
A predicate function.
const values = ['a', 'b', 'c'] as const;values.filter(IterPredicate.notOneOf('a')); // ['b', 'c'] Copy
const values = ['a', 'b', 'c'] as const;values.filter(IterPredicate.notOneOf('a')); // ['b', 'c']
Creates a predicate function that checks if a specific item is present in an Iterable.
const values = ['a', 'b', 'c'] as const;values.filter(IterPredicate.oneOf('a')); // ['a'] Copy
const values = ['a', 'b', 'c'] as const;values.filter(IterPredicate.oneOf('a')); // ['a']
The
IterPredicateclass provides utility functions for creating predicate functions for Iterable properties.Since
v1.1.3