Content pfp
Content
@
0 reply
0 recast
0 reaction

MajorTom327 pfp
MajorTom327
@majortom327.eth
One of the best libraries ever: https://www.npmjs.com/package/ts-pattern Having partial matcher, conditional branching Being ably to make something like const status = match(statusCode) .with(200, () => β€œπŸ‘Œβ€) .with(404, () => β€œNot Found bro”) .otherwise(() => β€œπŸ’€β€) Is insanely cool 😎
1 reply
0 recast
0 reaction

Quyin🎭 pfp
Quyin🎭
@qyuin
This is pattern-matching in a box
0 reply
0 recast
0 reaction