Check out example codes for "typescript iterate over enum". It will help you in understanding the concepts better.

Code Example 1

for (const key in EnumObject) {
  console.log(key, EnumObject[key]);
}

Learn ReactJs, React Native from akashmittal.com