Check out example codes for "typescript object to array". It will help you in understanding the concepts better.

Code Example 1

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

// you have resultArray having iterated objects

Code Example 2

//Supposing fooObj to be an object

fooArray = Object.entries(fooObj);

fooArray.forEach(([key, value]) => {
  console.log(key); // 'one'
  console.log(value); // 1

Learn ReactJs, React Native from