v2.1.0
- fix: The library doesn't throw exceptions when non
Either
values are used.
BREAKING CHANGE: Until now the library had some logic to throw exceptions when a non Either
value was used. This is not the case anymore.
Now, when a non Either
value is detected from the isLeft
or isRight
functions (which are also used internally) a Left
is returned.
- feat: Added
tryCatch()
function. (docs)