1×
Become a member
to unlock all features
Autoplay

    Create a Maybe with a `safe` Utility Function

    javascriptJavaScript

    In this lesson, we’ll create a safe function that gives us a flexible way to create Maybes based on a value and a predicate function that we supply. We’ll verify its behavior with values that satisfy the predicate, and values that do not.