deno.land / x / rambda@v9.1.1 / src / anyPass.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export function anyPass(predicates){ return (...input) => { let counter = 0 while (counter < predicates.length){ if (predicates[ counter ](...input)){ return true } counter++ }
return false }}
rambda

Version Info

Tagged at
7 months ago