:sunglasses: A curated list of awesome functional programming stuff in js
Functional programming is a style of programming which models computations as the evaluation of expressions. Contrast this with imperative programming where programs are composed of statements which change global state when executed. Functional programming typically avoids using mutable state and favors side-effect free functions and immutable data instead. This encourages writing composable and declarative programs that are easy to reason about.
These may be appended to entries. Each should be preceded by a "+" or "-" to indicate presence or absence of the tag's meaning. "-" tags should only be included when they are likely to help someone filter libraries for their needs. For instance,
-TStags are probably useful for Typescript users screening for types, but
-CTtags would be less likely to be helpful to anyone.
pipe(); implements Traits (from Rust)/Type Classes (from Haskell) in JS. -TS.
Write performant functional code by using the right data structures for the task.
Use the laws of math instead of always reinventing your own thing. Algebraic!
null. Tifi is inspired by the OCaml/Reason utilities for the option data type. +CT, +TS.
Maybemonad to handle simple failure cases and model more complex scenarios with the
Eithermonad or the
:star: Suggestions and PRs are welcome! :star:
Please read the contribution guidelines to get started.
To the extent possible under law, Christoph Hermann has waived all copyright and related or neighboring rights to this work.