Convert loop to .forEach

Replace regular for loops with .forEach() loops.

Refactoring (Convert)
ES2015
P42 for VS Code
Convert loop to .forEach

The refactoring supports converting regular for loops over an array with an index variable as well as for..of loops into .forEach() loops.

Configuration

Related Code Assists

Learn More

Available In