array from object key value 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);
});