ES6 introduced Object.entries and destructuring and template strings:
for (let [key, val] of Object.entries(myObjectPrimitive)) { console.log(`myObjectPrimitive[${key}]: ${val}`); }
<アンダブロッブ />
ES6 introduced Object.entries and destructuring and template strings:
for (let [key, val] of Object.entries(myObjectPrimitive)) { console.log(`myObjectPrimitive[${key}]: ${val}`); }