3.0.4 • Published 4 years ago
intercept
Intercepts errors, the Go way!
Parameters
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