Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/prelude_js/multiary.ts>match

A standard module for functional programming in JavaScript
Go to Latest
function match
import { match } from "https://deno.land/x/prelude_js@1.0.0-beta.2/multiary.ts";

Apply match.

Type Parameters

T extends Readonly<{ match: AnyFn; }>

Parameters

value: T
...args: Parameters<T["match"]>

Returns

ReturnType<T["match"]>