@perfective/value
Functions to work with `undefined` and `null` values
Functions to work with `undefined` and `null` values
A lightweight stream-like maybe/or else monad for typescript. `maybe(val).valueOr(other)` grant you no unexpected undefined and hence allows you to write you TS-code in a more fluid way, skipping some of those if-else nestings.
Simply returns true if variable does not contain null, undefined and just empty whitespaces.
[![example workflow](https://github.com/hansogj/maybe/actions/workflows/build.yml/badge.svg)](https://github.com/hansogj/maybe/actions/workflows/build.yml/badge.svg)