Returns true if maybe is an instance of Just
Example: Remove Nothing
values from an array
const maybes: Maybe<string>[]
maybes.filter(isJust)
Returns true if maybe is an instance of Nothing
Example: Count the Nothing
s
const maybes: Maybe<string>[];
maybes.filter(isNothing).length;
Generated using TypeDoc
Converts a value that may be empty, such as a string or an array, to a maybe. It will accept anything that responds to length. If the value is has a length of 0, then Nothing is returned. If the value is anything else, it is returned wrapped in a Just.