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(...))
| Svelte 4 hrs 6 mins βββββββββββββββββββββ 28.3% | |
| TypeScript 2 hrs 22 mins βββββββββββββββββββββ 16.3% | |
| Markdown 1 hr 56 mins βββββββββββββββββββββ 13.3% | |
| SQL 1 hr 31 mins βββββββββββββββββββββ 10.4% | |
| YAML 1 hr 12 mins βββββββββββββββββββββ 8.3% |
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: