UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

10 lines (7 loc) 215 B
export function none(predicate, list){ if (arguments.length === 1) return _list => none(predicate, _list) for (let i = 0; i < list.length; i++){ if (!predicate(list[ i ])) return true } return false }