Refactoring to Avoid Try and Catch Block in Promises
๐ค Why do we need this?
I like async...await to handle promises but sometimes I don't like try...catch block in linear coding in a function. Basically, I hate nesting...
๐ฅ Problems
Extra number of lines
Nesting code with extra variable declaration
...
devioand.hashnode.dev2 min read