Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js object percorrer

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
Source by pt.stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #object #percorrer
ADD COMMENT
Topic
Name
6+1 =