I have an object in JavaScript:
{ abc: \'...\', bca: \'...\', zzz: \'...\', xxx: \'...\', ccc: \'...\', // ... }
I
If you want the key and value when iterating, you can use a for...of loop with Object.entries.
const myObj = {a: 1, b: 2} for (let [key, value] of Object.entries(myObj)) { console.log(`key=${key} value=${value}`) } // output: // key=a value=1 // key=b value=2