Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript object to array

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

// you have resultArray having iterated objects 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #object #array
ADD COMMENT
Topic
Name
9+7 =