intercept
Intercepts errors, the Go way!
Parameters
input
Promise
Examples
import ctch from 'apr-intercept';
const [err1, res1] = await ctch(fn(1));
const [err2, res2] = await ctch(fn(1));
const [, res3] = await ctch(fn(3));
Returns Promise
Intercepts errors, the Go way!