fromRefinement
fromRefinement<
A,B>(r):Predicate<A>
Defined in: Core/Predicate.ts:167
Converts a Refinement<A, B> into a Predicate<A>, discarding the compile-time
narrowing. Use this when you want to combine a type guard with plain predicates
using and, or, or all.
Type Parameters
Section titled “Type Parameters”A
B
Parameters
Section titled “Parameters”Refinement<A, B>
Returns
Section titled “Returns”Predicate<A>