( self: Filter<A, Pass, Fail> )
| 260 | * @since 4.0.0 |
| 261 | */ |
| 262 | export const toPredicate = <A, Pass, Fail>( |
| 263 | self: Filter<A, Pass, Fail> |
| 264 | ): Predicate.Predicate<A> => |
| 265 | (input: A) => !Result.isFailure(self(input)) |
| 266 | |
| 267 | /** |
| 268 | * A predefined filter that only passes through string values. |