swissmanu / pattern-matching-with-typescript

TypeScript does not have any pattern matching functionality built in. This article shows several ways how you can replicate the core of a simple pattern matcher using a few simple structures and functions within TypeScript. Resulting code will have improved maintainability and better runtime type safety when done right.

Home Page:https://alabor.me/2017/07/05/pattern-matching-with-typescript.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

swissmanu/pattern-matching-with-typescript Stargazers