I have a list of objects in awards console.log(awards) looks like this..
[0]
[1]
count
next
previous
route
getRestangularUrl
getRequestedUrl
addRestangularMethod
clone
reqParams
etc...
I want to loop each array of objects ignoring all the other stuff i.e just [0] and [1]. Now I can do this when I know how many objects there are however I could have 1 or 100s.
for (var key in awards) {
if (awards[0]){
}
if (awards[1]){
}
}
Is there a what in javascript to detect an array in the for look?