Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 384 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 384 Bytes

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>;