Ember previous/next element of an array : I want to make a queue-like array, and I don't know how to move to the next element. I'm not using a for loop to iterate, because if the element of the array is deleted there is a problem.

What Can I do?

Greetings,
Rafał