3 ms·
Fyi return await is redundant and is just creating one additional callback you didn't need (b/c you will have to call this function with an await anyways)
by tofuahdude 6y ago
Fyi return await is redundant and is just creating one additional callback you didn't need (b/c you will have to call this function with an await anyways)
- chain-- 6y agoTry / catch is the exception, if you don't await then your catch handler won't work. https://jakearchibald.com/2017/await-vs-return-vs-return-await/ https://jakearchibald.com/2017/await-vs-return-vs-return-awa...
- azhu 6y agoSemi funny that this exchange is kinda like proof of why JS catches the hate it does.