A new hope

forEach() provides an index as the second callback argument.