Description
Pattern Matching is a declarative much more powerful and less verbose alternative to imperatives "if/else" conditions. A definition can be found inside Scala Documentation “Pattern matching tests whether a given value (or sequence of values) has the shape defined by a pattern, and, if it does, binds the variables in the pattern to the corresponding components of the value (or sequence of values).” In Functional Programming languages, there're built-in keywords for Pattern Matching. Typescript though is one language that works very well with Functional Programming but lacks this feature. This package aims to bring Pattern Matching feature to Typescript through Discriminated Union Types / Algebraic Data Types.
pattern-matching-ts alternatives and similar modules
Based on the "Functional Programming" category.
Alternatively, view Index alternatives based on common mentions on social networks and blogs.
-
lodash
A utility library delivering consistency, customization, performance, & extras. A better and faster Underscore.js. -
RxJS
Functional reactive library for transforming, composing, and querying various kinds of data. -
Ramda
A utility library with a focus on flexible functional composition enabled by automatic currying and reversed argument order. Avoids mutating data. -
Lazy.js
Utility library similar to lodash/Underscore but with lazy evaluation, which can translate to superior performance in many cases. -
mori
A library for using ClojureScript's persistent data structures and supporting API from the comfort of vanilla JavaScript. -
Mout
Utility library with the biggest difference between other existing solutions is that you can choose to load only the modules/functions that you need, no extra overhead. -
underscore-contrib
The brass buckles on Underscore's utility belt. -
Kefir.js
Reactive library with focus on high performance and low memory usage. -
Folktale
A suite of libraries for generic functional programming in JavaScript that allows you to write elegant, modular applications with fewer bugs, and more reuse.
Scout APM - Leading-edge performance monitoring starting at $39/month
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of pattern-matching-ts or a related project?