import { List , Predicate } from '../types' ; import { curry2 } from '@typed/functions' ; name export const anyPass = curry2 ( __anyPass ) ; export type AnyPass = { < A > ( predicates , value ) : boolean ; < A > ( predicates ) : ( value : A ) => boolean ; } ; function __anyPass < A > ( predicates , value ) { for ( const predicate of Array . from ( predicates ) ) if ( predicate ( value ) ) return true ; return false ; }