deno.land / x / rambda@v9.1.1 / source / pass.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
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}
rambda

Version Info

Tagged at
2 months ago