Check out example codes for "loop an object properties in ts". It will help you in understanding the concepts better.

Code Example 1

Object.keys(obj).forEach(e => console.log(`key=${e}  value=${obj[e]}`));

Learn ReactJs, React Native from akashmittal.com