Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JS percorrer objeto

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]);
}
 Executar
Source by pt.stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #JS #percorrer #objeto
ADD COMMENT
Topic
Name
6+3 =