I have the following object:
var objectVar = {
4 : { "key" : "key-name4", "item4" : {} },
3 : { "key" : "key-name3", "item3" : {} }
}
I then try the following:
$(objectVar).each(function(index,record){
console.log(record); // Loops Only Once and Logs Full Object
});
Can anyone help me with why the $.each(); function inst iterating through the sub objects within the main object?
Any help would be appreciated!