I have a simple iteration using jQuery `each`

```
 $.each(data.Limit, function (index, value) {
   alert(value.LimitCategory);
 });

```

How do I change this to call an actual javascript function - which I want to maintain separately from the loop?

e.g.

```
function DoSomethingElse(index, value){
//more things here
};

```

I've tried a few ways and can't seem to get the syntax.