Skip to main content
Module

x/rambda/source/pass.js

Faster and smaller alternative to Ramda
Latest
File
import { any } from './any.js'import { check } from './ok.js'
export function pass(...inputs){ return (...schemas) => any((x, i) => { const schema = schemas[ i ] === undefined ? schemas[ 0 ] : schemas[ i ]
return !check(x, schema) }, inputs) === false}