and

Option.and returns None if the Option is None, otherwise returns optionB.

Option<T>.and<U> = (optionB: Option<U>) => Option<U>

Example

find(people, person => person.name === 'Tom')   // => Some({ name: "Tom", age: 28 })
    .and(Some({ profession: "Engineer" }))      // => Some({ profession: "Engineer" })