MCPcopy
hub / github.com/gvergnaud/ts-pattern / match

Function match

src/match.ts:32–36  ·  view source on GitHub ↗
(
  value: input
)

Source from the content-addressed store, hash-verified

30 *
31 */
32export function match<const input, output = symbols.unset>(
33 value: input
34): Match<input, output> {
35 return new MatchExpression(value, unmatched) as any;
36}
37
38/**
39 * This class represents a match expression. It follows the

Callers 15

testFnFunction · 0.90
nonExhaustiveFunction · 0.90
exhaustiveFunction · 0.90
fFunction · 0.90
record.test.tsFile · 0.90
matchResultFunction · 0.90
fFunction · 0.90
getFunction · 0.90
fFunction · 0.90
fFunction · 0.90

Calls

no outgoing calls

Tested by 15

testFnFunction · 0.72
nonExhaustiveFunction · 0.72
exhaustiveFunction · 0.72
fFunction · 0.72
matchResultFunction · 0.72
fFunction · 0.72
getFunction · 0.72
fFunction · 0.72
fFunction · 0.72
f2Function · 0.72
f3Function · 0.72
fn1Function · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…