2.4.1
New Features
- New API
match
is added to handle Result value with ease.
let paser = wrap(JSON.parse)
let json = parser.parse('{"a": 1}').match(
Ok: v => v,
Err: e => ({error: e})
)
Full Changelog: 2.3.0...2.4.1
match
is added to handle Result value with ease.let paser = wrap(JSON.parse)
let json = parser.parse('{"a": 1}').match(
Ok: v => v,
Err: e => ({error: e})
)
Full Changelog: 2.3.0...2.4.1