apr-intercept

3.0.4 • Public • Published

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

Package Sidebar

Install

npm i apr-intercept

Weekly Downloads

1,442

Version

3.0.4

License

MIT

Unpacked Size

12.2 kB

Total Files

8

Last publish

Collaborators

  • ramitos