Object.keys(obj).forEach(key =>
console.log(`key=${key} value=${obj[key]}`)
);
↧
Answer by Fellow Stranger for Iterate through object properties
↧
Object.keys(obj).forEach(key =>
console.log(`key=${key} value=${obj[key]}`)
);