I am looking for a way to iterate over an array and only output the first item, and when iterating again, output the second item. 

```
var array = [1,2,3]
iterate : function () {
  $.each(array, function(a,b) {
       console.log(a); // This will log 1 and 2 and 3
  });

```

This will log 1,2 and 3 but I just want to log 1 first and when the `iterate` function is called again, it will log 2 and then 3

I am assigning `iterate` function to a button (an increment button). So the increment button will simply output 1 when clicked first, and then 2 when clicked again, and then 3 when clicked again.