deno.land / x / rambda@v9.1.1 / source / where.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
export function where(conditions, input){ if (input === undefined){ return _input => where(conditions, _input) } let flag = true for (const prop in conditions){ if (!flag) continue const result = conditions[ prop ](input[ prop ]) if (flag && result === false){ flag = false } }
return flag}
rambda

Version Info

Tagged at
2 months ago