There was an error while loading. Please reload this page.
1 parent da0a19a commit 5a50ef4Copy full SHA for 5a50ef4
docs/rules/array-foreach.md
@@ -85,7 +85,7 @@ If `polishApple` need to do some async work, then we'd need to refactor the iter
85
```diff
86
- apples.forEach(polishApple)
87
+ await Promise.all(
88
-+ apples.map(async apple => await polishApple(apple))
++ apples.map(polishApple)
89
+ )
90
```
91
0 commit comments