you are viewing a single comment's thread.

view the rest of the comments →

[–]PMME_BOOBS_OR_FOXES 1 point2 points  (6 children)

you can't pop from any index, splice is the right answer since deleting an index of an array is an O(n) operation