Create an instance of Maybe.Nothing
.
If you want to create an instance with a specific type, e.g. for use in a
function which expects a Maybe<T>
where the <T>
is known but you have no
value to give it, you can use a type parameter:
const notString = Maybe.nothing<string>();
Optional
_: nullAn instance of Maybe.Nothing<T>
.
Create a
Maybe
instance which is aNothing
.If you want to create an instance with a specific type, e.g. for use in a function which expects a
Maybe<T>
where the<T>
is known but you have no value to give it, you can use a type parameter:Template: T
The type of the item contained in the
Maybe
.Returns
An instance of
Maybe.Nothing<T>
.