I have a JavaScript array, where each new item added to the array gets the next incremental number. An example would be as follows (I hope Im writing this correctly):
Something like this:
function in_array(array, id) { for(var i=0;i