UNPKG

rambda

Version:

Lightweight and faster alternative to Ramda with included TS definitions

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