how to get key value pairs out of objects javascript code example
Example: javascript iterate object key values
Object.entries(obj).forEach(([key, value]) => {
console.log(key, value);
});
Object.entries(obj).forEach(([key, value]) => {
console.log(key, value);
});