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
}