Answers for "iterate over object of objects javascript"

10

javascript iterate over object

var obj = { first: "John", last: "Doe" };

Object.keys(obj).forEach(function(key) {
    console.log(key, obj[key]);
});
Posted by: Guest on September-11-2019

Code answers related to "iterate over object of objects javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language