Skip to main content
Module

x/rambda/benchmarks/anyPass.js

Faster and smaller alternative to Ramda
Go to Latest
File
const R = require('../../dist/rambda.js')const Ramda = require('ramda')
const rules = [ x => typeof x === 'boolean', x => x > 20, x => x * 7 < 100 ]
const anyPass = [ { label : 'Rambda', fn : () => { R.anyPass(rules)(11) }, }, { label : 'Ramda', fn : () => { Ramda.anyPass(rules)(11) }, },]
module.exports = anyPass