maybe('something').map(value => value + ' more').orNull() // produces: "something more"maybe(null).map(value => value + ' more').orNull() // produces: nullmaybe(undefined).map(value => value + ' more').orNull() // produces: nullmaybe(NaN).map(value => value + ' more').orNull() // produces: null Copy
maybe('something').map(value => value + ' more').orNull() // produces: "something more"maybe(null).map(value => value + ' more').orNull() // produces: nullmaybe(undefined).map(value => value + ' more').orNull() // produces: nullmaybe(NaN).map(value => value + ' more').orNull() // produces: null
Optional
for isSomething === not('undefined' || type === 'null' || type === 'nan') Copy
for isSomething === not('undefined' || type === 'null' || type === 'nan')