📅  最后修改于: 2022-03-11 14:48:21.401000             🧑  作者: Mango
var resultArray = Object.keys(persons).map(function(personNamedIndex){
let person = persons[personNamedIndex];
// do something with person
return person;
});
// you have resultArray having iterated objects