This is something very basic I might be missing here but I haven\'t seen such result till now.
I have a for loop where options.headers.length is 3. And in
3
if you don't want to iterate clean and remove then change the loop to:
clean
remove
for (var i=0; i< options.headers.length;i++){ //use i for getting the array data }
if you use for (index in options.headers) it will iterate for non-numeric keys also.
for (index in options.headers)
non-numeric