📜  typescript 对象到数组 - TypeScript 代码示例

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

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

// you have resultArray having iterated objects