var resultArray = Object.keys(persons).map(function(personNamedIndex){ let person = persons[personNamedIndex]; // do something with person return person; }); // you have resultArray having iterated objects