Hacker News new | ask | show | jobs
by jaaames 2837 days ago
I believe there was/is a stage 0 proposal for pattern matching in ECMAScript
1 comments

Stage 1 and yes, this one simply uses destructuring.

But it could use JavaScripts own types.

But it couldn't use TypeScripts types.