UNPKG

rambda

Version:

Lightweight and faster alternative to Ramda with included TS definitions

14 lines (12 loc) 235 B
export function allPass(predicates) { return input => { let counter = 0 while (counter < predicates.length) { if (!predicates[counter](input)) { return false } counter++ } return true } }