A `Maybe` library for TypeScript / JavaScript. This tries to have as little overhead as possible by having a `Maybe<T>` as `T | null | undefined` then using functions for dealing with maybes. As opposed to having custom datasructures and dsls. The library provides typesafe functions for creating pipelines from a maybe as well as traditional `getOrElse` type functions. This aims to make dealing with null's and undefined values simpler as well as allowing the flexibility of opting into as much or as little as the library as you require.
Show HN: Lightweight Maybe Library for TypeScript / JavaScript | Heykuki News