UNPKG

fuck-around-and-find-out

Version:

Instead of trying and catching, go ahead and fuck around if you wanna find out.

9 lines (8 loc) 185 B
function fuckAround(action: () => void, errorAction: (error: any) => void): void { try { action(); } catch (error) { errorAction(error); } }; export = fuckAround;