Simple tryCatch util function for both sync and async
npm install easy-try-catchSimple tryCatch util function for both sync and async
``sh`
npm i easy-try-catch
`js`
const { data, error } = tryCatch(() => JSON.parse(/ ... /));
`js``
const { data, error } = await tryCatch(fetch(/ ... /));