try-catch
v4.0.7
Published
functional try-catch wrapper
Readme
Try Catch

Functional try-catch wrapper
Install
npm i try-catchExample
import {tryCatch} from 'try-catch';
const {parse} = JSON;
const [error, result] = tryCatch(parse, 'hello');
if (error)
console.error(error.message);Related
- try-to-catch - functional try-catch wrapper for promises.
License
MIT
