In case you want to deeply iterate into a complex (nested) object for each key & value, you can do so using Object.keys(), recursively:
const iterate = (obj) => {
Object.keys(obj).forEach(key => {
console.log(`key: ${key}, value: ${obj[key]}`)
if (typeof obj[key] === 'object') {
iterate(obj[key])
}
})
}