Skip to main content
Go to Latest
method matches.Validator.prototype.concat
Re-export
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.1.1.4/mod.ts";
const { Validator } = matches;

Use this when you want to combine two parsers into one. This will make sure that both parsers will run against the same value.

Parameters

otherParser: IParser<B, C>

Returns

Parser<A, C>