i want to get only the values of an enum as an array. So if you have:
enum A {
dog = 1,
cat = 2,
ant = 3
}
What i want: ["dog", "cat", "ant"]
by:
Object.values(A)
but it gets you: ["dog", "cat", "ant", 0, 1, 2]
Also the values returned (0, 1, 2)
would not match the given ones (1, 2, 3)
anyway.
How can i accomplish that?