Rule: prefer-for-of
Recommends a ‘for-of’ loop over a standard ‘for’ loop if the index is only used to access the array being iterated.
Rationale
A for(… of …) loop is easier to implement and read when the index is not needed.
Config
Not configurable.
Config examples
"prefer-for-of": true
Schema
null