Const
Readonly
empty: <T>() => Maybe<T>Create a Maybe object with no value
Readonly
fromNullable: <T>(value: null | T) => Maybe<T>Create a Maybe object that will contain the given value if it is not null. Esle the Maybe object will contain no value.
Readonly
fromUndefined: <T>(value: undefined | T) => Maybe<T>Create a Maybe object that will contain the given value if it is defined. Esle the Maybe object will contain no value.
Readonly
fromValue: <T>(value: T) => Maybe<T>Create a Maybe object with a value inside
Maybe utilities