DEV Community

Discussion on: How to iterate over objects using array methods

Collapse
 
robaxelsen profile image
Robert Axelsen • Edited

Beautiful! This one is also nice:

Object.entries(obj).forEach(([key, value]) => {
  console.log(key, value);
});