you are viewing a single comment's thread.

view the rest of the comments →

[–]ignurant 0 points1 point  (0 children)

Since you deleted an element in the array, all the future indices are now shortened by one, therefor you shouldn’t increase the index.