how to iterate over an object and only get some items code example
Example: iterate through object array javascript
for (var key in array) {
var obj = myArray[key];
// ...
}
for (var key in array) {
var obj = myArray[key];
// ...
}