DEV Community

Discussion on: Let's Clean Up: Ugly Try-Catches!

Collapse
broflylow profile image
Haritonich • Edited on

There is already another solution that was created years ago, he took approach to handle errors same way as in GO

github.com/scopsy/await-to-js

Anyway good job mate !

Collapse
coly010 profile image
Colum Ferry Author

Thanks!
Awesome link, there is something similar to the above called await-of that also handles promises, I wanted a method that also worked for standard methods that throw errors.