Methods
allOf
- allOf<T>(...predicates: Array<function>): Predicate<T>
-
Type parameters
Parameters
-
Rest ...predicates: Array<function>
anyOf
- anyOf<T>(...predicates: Array<function>): Predicate<T>
-
Type parameters
Parameters
-
Rest ...predicates: Array<function>
equals
-
Type parameters
Parameters
isIn
-
Type parameters
Parameters
noneOf
- noneOf<T>(...predicates: Array<function>): Predicate<T>
-
Type parameters
Parameters
-
Rest ...predicates: Array<function>
of
-
Type parameters
Parameters
-
fn: function
-
-
Parameters
Returns boolean
The Predicates class offers some helper functions to deal with Predicate including the ability to build Predicate from functions using PredicateStatic.of, some builtin predicates like PredicateStatic.isIn, and the ability to combine to combine Predicates like with PredicateStatic.allOf.