Skip to main content
Module

x/rambda/source/all.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function all(predicate, list) { if (arguments.length === 1) return _list => all(predicate, _list)
for (let i = 0; i < list.length; i++) { if (!predicate(list[i])) return false }
return true}