3.0.4 • Published 4 years ago

apr-intercept v3.0.4

Weekly downloads
225
License
MIT
Repository
github
Last release
4 years ago

intercept

Intercepts errors, the Go way!

npm.io npm.io

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