The for-await-of
syntax is similar to the for-of
iteration. The key difference is that it automatically awaits any promises generated by the iterator. This lesson covers how to consume async data sources easily with for-await-of
.
for-await-of
essentially allows you to use async/await
in a generator function.
Indeed TypeScript can be used as a very transparent layer on JavaScript. That is one of the strengths of TypeScript 🌹
It is all TS files and typescript execution. TypeScript truly is just as simple as JS and shouldn’t need to be anything more if not required : https://basarat.gitbooks.io/typescript/content/docs/javascript/recap.html 🌹