diff --git a/docs/rules/no-array-for-each.md b/docs/rules/no-array-for-each.md index 9e9064208d..5b626b2c69 100644 --- a/docs/rules/no-array-for-each.md +++ b/docs/rules/no-array-for-each.md @@ -12,6 +12,7 @@ Benefits of [`for…of` statement](https://developer.mozilla.org/en-US/docs/Web/ - Faster - Better readability - Ability to exit early with `break` or `return` +- Ability to skip iterations with `continue` Additionally, using `for…of` has great benefits if you are using TypeScript, because it does not cause a function boundary to be crossed. This means that type-narrowing earlier on in the current scope will work properly while inside of the loop (without having to re-type-narrow). Furthermore, any mutated variables inside of the loop will picked up on for the purposes of determining if a variable is being used.