Skip to main content
Module

x/rambda/any.js

Faster and smaller alternative to Ramda
Go to Latest
File
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}