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

Code Example 1

// Helper
const StringIsNumber = value => isNaN(Number(value)) === false;

// Turn enum into array
function ToArray(enumme) {
    return Object.keys(enumme)
        .filter(StringIsNumber)
        .map(key => enumme[key]);
}

Learn ReactJs, React Native from akashmittal.com