Unhappy Linter When Using Array Methods

I have this code in a JS query:

Why does the linter complain about this code?

i and a are defined but not used.

2 Likes