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