How to iterate over enum values for display in radio buttons in TypeScript
Hi! I just started learning TypeScript and ran into a problem working with enums. I have an enum for order statuses:
```typescript
enum OrderStatus {
Pending = 'pending',
Processing = 'processing',
Shipped = 'shipped',
Delivered = 'delivered',
Cancelled = 'cancelled'
}
```
I need to display these statuses as a set of radio buttons on a form. I want the user to be able to select one of the options. The problem is that I don't understand how to properly get all enum values as an array of strings to then use them in a loop to create radio buttons.
I tried writing this:
```typescript
const statuses = Object.keys(OrderStatus);
```
But this returns keys, not values. If I use `Object.values()`, I get an array, but there are