Skip to main content
Home

latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
52%
Published
2 years ago (1.0.0)
function match
match<
T = any,
R = any,
>
(
target: T,
matchers: Matchers<T, R>,
): R | undefined

Type Parameters

T = any
R = any

Parameters

target: T
matchers: Matchers<T, R>

Return Type

R | undefined

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@citrus327/match

Import symbol

import { match } from "@citrus327/match";
or

Import directly with a jsr specifier

import { match } from "jsr:@citrus327/match";

Add Package

pnpm i jsr:@citrus327/match
or (using pnpm 10.8 or older)
pnpm dlx jsr add @citrus327/match

Import symbol

import { match } from "@citrus327/match";

Add Package

yarn add jsr:@citrus327/match
or (using Yarn 4.8 or older)
yarn dlx jsr add @citrus327/match

Import symbol

import { match } from "@citrus327/match";

Add Package

vlt install jsr:@citrus327/match

Import symbol

import { match } from "@citrus327/match";

Add Package

npx jsr add @citrus327/match

Import symbol

import { match } from "@citrus327/match";

Add Package

bunx jsr add @citrus327/match

Import symbol

import { match } from "@citrus327/match";