Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method matches.Parser.prototype.map
Re-export
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.1.1.4/dependencies.ts";
const { Parser } = matches;

Use this that we want to do transformations after the value is valid and parsed. A use case would be parsing a string, making sure it can be parsed to a number, and then convert to a number

Parameters

fn: (apply: B) => C
optional
mappingName: string

Returns

Parser<A, C>