You can do that like this:
var qData = [object, object, object, object, object];
for (var i = 0; i < qData.length; i++) {
var obj = qData[i];
for (var prop in obj) {
console.log(prop + "=" + obj[prop]);
}
}
You first iterate through the array and then for each array element, you iterate through the properties. Keep in mind that you iterate array elements with for (var i = 0; i < array.length; i++)
and you iterate properties with for (props in array)
.
If you only want direct properties of the object (and not any enumerable properties of parent objects), you would use this:
var qData = [object, object, object, object, object];
for (var i = 0; i < qData.length; i++) {
var obj = qData[i];
for (var prop in obj) {
if (obj.hasOwnProperty(prop)) {
console.log(prop + "=" + obj[prop]);
}
}
}