blob: 0fae01e84eb5236370ed03206508a07669f27212 [file] [log] [blame] [edit]
export function anyPass(predicates){
return (...input) => {
let counter = 0
while (counter < predicates.length){
if (predicates[ counter ](...input)){
return true
}
counter++
}
return false
}
}