traverse over object's keys code example
Example: loop over keys in object javascript
Object.keys(obj).forEach(function(key) {
console.log(key, obj[key]);
});
Object.keys(obj).forEach(function(key) {
console.log(key, obj[key]);
});