Skip to main content
Module

x/rambda/pass.js

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