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 8 hrs 23 mins βββββββββββββββββββββ 42.6% | |
| TypeScript 5 hrs 3 mins βββββββββββββββββββββ 25.7% | |
| Go 4 hrs 10 mins βββββββββββββββββββββ 21.2% | |
| JSON 44 mins βββββββββββββββββββββ 3.8% | |
| Markdown 23 mins βββββββββββββββββββββ 2.0% |
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: