S7728 FP Use "for...of" loops instead of "forEach" method calls

Hello @zburke,

when using for..of, you would need to call entries() in order to get the index:

for (const [index, element] of list.entries()) {
  console.log(`${element} of ${index}`);
}