UNPKG

rambdax

Version:

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

22 lines (17 loc) 387 B
import { isTruthy } from './_internals/isTruthy.js' import { type } from './type.js' export function allFalse(...inputs){ let counter = 0 while (counter < inputs.length){ const x = inputs[ counter ] if (type(x) === 'Function'){ if (isTruthy(x())){ return false } } else if (isTruthy(x)){ return false } counter++ } return true }