Hardcore Functional Programming in JavaScript Hardcore Functional Programming in JavaScript

Either

Brian Lonsdorf
SFJS Co-Organizer
The Either functor is typically used for pure error handling. It functions just like Maybe, but with an error message embedded. Either includes subclasses Left and Right. Right will always run. Left would not run and return the error message.
Get Unlimited Access Now