Sign in
chromium
/
external
/
github.com
/
SeleniumHQ
/
selenium
/
refs/heads/api-docs-4.30.0-all
/
.
/
node_modules
/
rambda
/
src
/
any.js
blob: 5aa2c0f2f17c555a9350a2a8105f1a59bdaa0544 [
file
] [
log
] [
blame
] [
edit
]
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
}