Skip to main content
Module

x/rambda/source/allPass.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function allPass(predicates) { return (...input) => { let counter = 0 while (counter < predicates.length) { if (!predicates[counter](...input)) { return false } counter++ }
return true }}