Skip to content

agmoss/fnctnl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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