Replace _.each and _.forEach with array.forEachpro
Why is this refactoring helpful?
You can express many
What do I need to consider?
_.forEach iterate over array-like collections (i.e., non-arrays with a
.length property) as if they are arrays. This can lead to differences between
- Code Assist ID (for the configuration file):
- You can configure custom keyboard shortcuts with this code action kind:
- This code assist provides refactoring suggestions. Learn how to configure the refactoring suggestion visibility.
Related Code Assists
- Replace _.every with array.every
- Replace _.filter with array.filter
- Replace _.map with array.map
- Replace _.some with array.some