javascript for loop change keys of object 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]);
});