Monado is a lightweight library for TypeScript which adds support for common monad data types as seen in functional languages (e.g. Haskell, OCaml) and more modern procedural ones (e.g. Rust, Swift).
It adds the following variants:
Resultfor computations that may lead to errorsOptionfor optional values
npm install @axaptional/monadonpm build
This package is available under the Unlicense.
Attribution is not required, but welcome.