Function: create()
Call Signature
Section titled “Call Signature”create<
T,U>(predicate):Predicate<T,U>
Wraps a type predicate while preserving its narrowed type.
Type Parameters
Section titled “Type Parameters”T
U
Parameters
Section titled “Parameters”predicate
Section titled “predicate”TypePredicateFunction<T, U>
Returns
Section titled “Returns”Predicate<T, U>
Call Signature
Section titled “Call Signature”create<
T>(predicate):Predicate<T,T>
Wraps an ordinary boolean or truthy predicate.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”predicate
Section titled “predicate”Returns
Section titled “Returns”Predicate<T, T>