Match Case
Functional pattern matching for typescript
Installation
npm i match-c
Usage
; // Mathces the proper case .c"Hola", 2 .c"Hello", 100 .c"Hello!!", 5 .result; // Uses defualt when no match is found .c"Hola", 2 .c"Hello", 100 .c"Hello!!!!!", 5 .result;
Building and Testing
npm test # If no errors occur, the test suite passed