typescript-monads helps you write safer code by using abstractions over messy control flow and state.
You can use this library in the browser, node, or a bundler
npm install typescript-monads
<head>
<script src="https://unpkg.com/typescript-monads"></script>
<!-- or use a specific version to avoid a http redirect -->
<script src="https://unpkg.com/typescript-monads@5.3.0/index.min.js"></script>
</head>
var someRemoteValue;
typescriptMonads.maybe(someRemoteValue).tapSome(console.log)
TODO
TODO
TODO
TODO
TODO
TODO
TODO