Proposal for `Option.matchNullable` Helper Function

I've just written Option.match(Option.fromNullable(value), { onSome: () => [...], onNone: [...] }) a few times to avoid a type check and ternary. As there are already some helpers for nullable values, would an Option.matchNullable (or even Nullable.match/Function.matchNullable) helper be useful? Happy to open a PR, but wanted to check if it'd be accepted first.
Was this page helpful?