Question: I'm parsing an array using `$.each()`, but inside it, I'm using `.splice()` method, so I need to iterate backward. Is it possible ?

```
var store = [...];
//...
var rules = [...];
//...
$.each(store, function(index, element) { // This loop needs to iterate backward
    $.each(rules, function(index2, rule) {
        if (element.id == rule.id) {
            store.splice(index, 1);
        }
    });
});

```

**WARN :**

* I don't want to reverse the array, it wouldn't be the same behavior.
* Also I know I could use `for`, I just want to know if it's achievable using `$.each`

Answer: 
```
$.each(store.reverse(), function(index, element) { // This loop iterate backward
[...]

```

This works, it's the same as this post [jquery-each-backwards](https://stackoverflow.com/questions/4496795/how-to-iterate-elements-in-reverse-order-in-jquery/4496814). But the point here is, you're applying this over the `store`.
You could use $.each but you'd have to decrement the indice variables (index, index2) as you did.