<h2>Using for..of with Object.entries()</h2>
const obj = {a: 1, b: 2, c: 3};
for (const [key, value] of Object.entries(obj)) {
console.log(`key: ${key}, value: ${value}`) ;
}
This Pen is owned by Envato Tuts+ on CodePen. It is a fork of this Pen.
See more by @tutsplus on CodePen