So I'm trying to add this event to an array and I keep getting this error. What am I doing wrong?
for i in [0...targets.length]
orfor target, i in targets
The first argument in this ›for‹ loop will actually be the element of the array, not its index :)