Similar to map, but apply a function wrapped in Maybe.
If either the function Maybe or this Maybe is "Nothing", then this will return "Nothing". Otherwise, the function will be applied to the value and return a Maybe.
Maybe wrapping a function
Monadic binding. Apply a function which returns a Maybe without adding structure.
Returns "Nothing" when the Maybe is "Nothing, or when the function applied to the value returns "Nothing". Otherwise, returns "Just" the result of the function: a Maybe of the value.
A unary function which returns a Maybe
Apply a function to the value contained in Maybe
If Maybe is "Nothing" then it will always return "Nothing". If Maybe is "Just" some value, the function will be applied to that value and returned as a Maybe.
A unary function
Produce a string representation of the object
Returns a Nothing.
Wrap a value with Maybe.
If the value is undefined or null, it will return "Nothing". Otherwise, it will return a "Just" containing the value.
Generated using TypeDoc
A common alias of Maybe.of