loop through all obj keys js 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]);
});