polyfill-maybe
v1.0.2
Published
Polyfill for the new `Maybe` type.
Downloads
4
Readme
Maybe
Polyfill for the new Maybe
type.
Proposal: https://github/futurist/https://github.com/futurist/proposal-maybe
Usage
require('@byted/maybe-polyfill')
const x = Maybe(10)
console.log(x.unwrap())
x.down()
x.unwrap()
// throw MaybeError: [object Maybe.none]