This could be simplified with then().catch(). I agree that async rules, but in edge cases old syntax will work better
Freelancer (Upwork Top Rated Plus). Full-stack Azure cloud developer. JavaScript and TypeScript connoisseur.
Love podcasts or audiobooks? Learn on the go with our new app.