const obj = {
"column01": "Coluna 01",
"column02": "Coluna 02"
};
Object.keys(obj).forEach((item) => {
console.log(item + " = " + obj[item]);
});
for (const property in obj) {
console.log(property + " = " + obj[property]);
}
ExecutarEsconder resultado
const obj = {
"column01": "Coluna 01",
"column02": "Coluna 02"
};
for (const [key, value] of Object.entries(obj)) {
console.log(key + ' ' + value);
}
Executar