How to iterate object key/values es6

How to iterate object key/values?

const obj = { a: "foo", b: "bar" };

const result = Object.keys(obj).forEach((key,i) => {

   // .. 

});

Comments

Popular posts from this blog

world tourism guide Template

Es6 how to check if value is not null or undefined?