fnctnl

Functional programming utilities

Usage no npm install needed!

<script type="module">
  import fnctnl from 'https://cdn.skypack.dev/fnctnl';
</script>

README

fnctnl NPM Package

Functional programming utilities

Either

A value with two possibilities. Left holds an error outcome while Right holds the success outcome. Useful to represent the outcome of a computation that might fail.

export type Either<L, R> = Left<L> | Right<R>;