I would like a simple way to get a list of keys from an enumerator, I tried Object.keys, but it returned 6 keys, 0-5, I think it occours because when I tried foreach the enum, this returned keys and values list, is there a simple way to return only keys, I would not like to return to mount and return another list.
I will use this with react
My enum:
enum ObservationType {
Accomodation = 1,
Addtional = 2,
LandTransport = 3
}
Sample that I tried and returned six values:
{Object.keys(ObservationType).map((type) => <div>{type}</div>)}