Content
@
0 reply
0 recast
0 reaction
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π
@qyuin
This is pattern-matching in a box
0 reply
0 recast
0 reaction