| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Please use for ... of instead of a traditional index-based for loop.
Sorry, something went wrong.
|
What is the reason for this change? I see the code-and-learn label so I guess it is from...Grace Hopper Day or something? |
Sorry, something went wrong.
|
@Trott Yes, most occurrences of forEach predate support for for ... of. The latter allows const variables and works with non-arrays. |
Sorry, something went wrong.
Sorry, something went wrong.
Replace `forEach()` with `for...of` in in test-dgram-socket-buffer-size. PR-URL: #49794 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Replace `forEach()` with `for...of` in in test-dgram-socket-buffer-size. PR-URL: #49794 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Replace `forEach()` with `for...of` in in test-dgram-socket-buffer-size. PR-URL: #49794 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Replace `forEach()` with `for...of` in in test-dgram-socket-buffer-size. PR-URL: #49794 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
| Back | FazBrowse Home | New Git URL |
Changes will replace forEach loop to for loop