javascript object with key value pair in array 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);
});