TLDR: Use for...of
instead of forEach()
in asynchronous code.
For legacy browsers, use for(...;...;...)
or [].reduce()
To execute the promises in parallel, use Promise.all([].map(...))
TypeScript 2 hrs 26 mins βββββββββββββββββββββ 77.8% | |
Go 18 mins βββββββββββββββββββββ 9.9% | |
YAML 11 mins βββββββββββββββββββββ 5.9% | |
Markdown 4 mins βββββββββββββββββββββ 2.6% | |
Docker 4 mins βββββββββββββββββββββ 2.1% |
Note:
When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.
If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code: