loop através de pares de valor -chave JS

for (const [key, value] of Object.entries(object1)) {
  console.log(`${key}: ${value}`);
}
Average Ant