Skip to main content
Module

x/jason/mod.ts>matches

A composable validation library for TypeScript and JavaScript with amazing type support.
Latest
function matches
import { matches } from "https://deno.land/x/jason@0.1.3/mod.ts";

Creates a validator that matches a custom predicate

Parameters

predicate: (val: T) => boolean
optional
customErrorMsg: string