📜  将对象对象转换为数组打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:37.201000             🧑  作者: Mango

代码示例2
var resultArray = Object.keys(persons).map(function(personNamedIndex){
    let person = persons[personNamedIndex];
    // do something with person
    return person;
});

// you have resultArray having iterated objects