const [result, error] = attempt(() => someFunc());
This way you don't have to wrap all your functions.
I can already see someone copy-pasting `wrap(myFunction)(args)` everywhere :-)
https://musicq.gitbook.io/unwrapit/recipe/return-result-with...
I can already see someone copy-pasting `wrap(myFunction)(args)` everywhere :-)