Go ProSign in
Safer JavaScript with the Maybe Type

Safer JavaScript with the Maybe Type

Autoplay

    Understand the Maybe Data Type

    Andy Van SlaarsAndy Van Slaars
    6:25

    In this lesson, we’ll get started with the Maybe type. We’ll look at the underlying Just and Nothing types and create a simple utility function to create a Maybe from a value. Then we’ll see how we can apply functions to values and skip invocation for values that might cause errors or unexpected results.

    You must be a Member to view code