DEV Community

Discussion on: Pattern-Match your JavaScript with Z

Collapse
kayis profile image
K (he/him) Author

Yes, I think the type-checking is the most practical feature of it, if it's exhaustive it could prevent many typical JavaScript bugs :)

Collapse
khalyomede profile image
Khalyomede

Absolutely agree, I use Joi but it still seems not "natural enough" for me, always thought Javascript diserved something better. Here you go :)

Collapse
toastking profile image
Matt Del Signore

Yeah, in functional languages it usually replaces conditionals but javascript has a plethora of them. This is super cool though.