1.0.2 • Published 3 years ago
polyfill-maybe v1.0.2
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]
1.0.2
3 years ago