expect

Option.expect returns the wrapped value, or throws an error with the provided message

Option<T>.expect = (message: string) => T;

Example

find(people, person => person.name === 'Carson') // => None
    .expect("Couldn't find Carson!")             // => throws!