Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
method matches.Validator.prototype.map
Re-export
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.3.0.4/mod.ts";
const { Validator } = 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