I'm using TSLint in a TypeScript project and it's complaining about the variable i
in the following code:
for (let i = 0; i < body.children.length; i++)
{
body.children[i].classList.remove('active');
}
The message is 'Shadowed variable: 'i' (no-shadowed-variable)'
Is there anything wrong with this loop and what would be the correct way of doing a for loop in TS?