▲ 'return await promise' vs 'return promise' in JavaScript at dmitripavlutin.com▼2 up and 0 down, posted by panzerdp 1233 days ago 1 comment
Gnito 1231 days ago. link 1 point ▲ ▼Always add ’catch’ to Promises, that way you don’t need to surround them with ’try-catch’ (and ’await’ is mostly syntactic sugar - it becomes ugly because of try-catch blocks, which are usually needed).