Functions
Const fromString
- fromString(str: string | null | undefined | void): Maybe<string>
-
Parameters
-
str: string | null | undefined | void
Returns Maybe<string>
Const of
- of<A>(value: A | null | undefined | void): Maybe<A>
-
Type parameters
Parameters
-
value: A | null | undefined | void
Returns Maybe<A>
Creates a Maybe containing a value. If the value is
undefined
ornull
aNothing
will be returned. All other values will be wrapped in aJust
.Maybe.of(value: A): Maybe