Hardcore Functional Programming in JavaScript Hardcore Functional Programming in JavaScript

Maybe Functor

Brian Lonsdorf
SFJS Co-Organizer
Any object or data structure that implements the map function is considered a functor. The first functor Brian demonstrates is the "Maybe" functor which will capture a null check. That value inside may or may not be there. When you add a Maybe into a compose, it will always check to make sure the value is there. If not, it will stop the composition.
Get Unlimited Access Now