DEV Community

Discussion on: Pattern-Match your JavaScript with Z

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 :)

khalyomede profile image

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

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.