with the good old for loop I can do things like:
for (let i=0; i<bla.length; i+=2){
...
}
So for every count, I can skip the index by doing a +2.
I know for...of is the future but I can't quite figure how to skip the index?
for (const [i, element] of bla.entries()) {
...
}
I know for...of is the futureDoes not mean you have to give up what you already have; You can still do what you want using filter or indexing but at this point it will be like "Swatting flies with a sledgehammer" you can do it but whyold forloop to the newfor ... ofloop.