Comment Comment by meowtimemania I'd prefer an api like this:const [result, error] = attempt(() => someFunc());This way you don't have to wrap all your functions. parent meowtimemania 3 years ago
const [result, error] = attempt(() => someFunc());
This way you don't have to wrap all your functions.