optional-chain
optional-chain copied to clipboard
Matcher functions should be optional in Optional.match
Is there any reason why both some
and none
have to specified in the object passed to the match
function? Often times I only need to take action if the Option is defined, so I only want to pass some
.
There is no particular reason. Probably, We might be able to make both some
and none
properties optional.