Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ts_matches/src/parsers/parser.ts>Parser#validate

Being able to pattern match in typescript
Go to Latest
method Parser.prototype.validate
import { Parser } from "https://deno.land/x/ts_matches@v5.2.1/src/parsers/parser.ts";

We want to test value with a test eg isEven

Parameters

isValid: (value: B) => boolean
otherName: string