UNPKG

rambda

Version:

Lightweight and faster alternative to Ramda with included TS definitions

14 lines (12 loc) 229 B
export function any(predicate) { return list => { let counter = 0 while (counter < list.length) { if (predicate(list[counter], counter)) { return true } counter++ } return false } }