Does anyone know how to convert a Typescript enum value to a number for display in a dropdown but passing the numeric value on submit? Here is how the enum is currently set up:
I am currently able to output the string key of the object when it is emitted (e.g. Value), but I want to pass the corresponding numeric value instead (like 0) upon submission.
Any ideas on how to achieve this?
enum Value {
Value = 0,
Test = 1,
Foo: 2
}