maybe-fantasy
A fantasyland compliant implementation of the maybe monad.
var maybe =var log = consolelogvar something = maybe// => true// => 'Hello world!'var nothing = maybe// => false// => null (never use this, it not a value!)
Unlike many other "maybe" implementations this is not a currying function that checks for null inputs, but a value representation that can be Nothing.