A skilled software engineer, talented problem-solver and team player with a passion for using technology to solve complex problems and constantly seeking out new challenges to advance my skills👨🏼💻
A skilled software engineer, talented problem-solver and team player with a passion for using technology to solve complex problems and constantly seeking out new challenges to advance my skills👨🏼💻
You can actually turn this into a utility function, like so:
You could also use an object like Brendan said.
I would wrap it in a higher order function though, something that takes an async function and returns a new async function with the added catch logic
Something like this, I guess:
Yeah. That can be way of implementing it.
Yeah. Utility function can be very helpful.