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

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

Version Info

Tagged at
2 months ago