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 3 hrs 9 mins βββββββββββββββββββββ 32.0% | |
JSON 2 hrs 10 mins βββββββββββββββββββββ 22.0% | |
JavaScript 1 hr 22 mins βββββββββββββββββββββ 13.9% | |
Markdown 57 mins βββββββββββββββββββββ 9.8% | |
Go 37 mins βββββββββββββββββββββ 6.4% |
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: