nullable variable
Option
const option = toOption('foo');
option.isNone(); // returns `false`;
option.unwrap(); // returns `'foo'`;
toOption(null).isNone(); // returns `true`
toOption(undefined).isNone(); // returns `true`
Generated using TypeDoc
Convert a nullable variable to
Option