Turns out there’s always a second parameter passed to a for loop which is the index.
How shockingly convenient.
for value in list console.log value for value, index in list console.log value, index
Yuji's Increasingly Infrequent Ramblings
Turns out there’s always a second parameter passed to a for loop which is the index.
How shockingly convenient.
for value in list console.log value for value, index in list console.log value, index
Thanks, great help!
Is it working with nested objects?
This is the answer I’ve been searching for on Google for hours! Thank you!
Thanks. This was a help to me.