Comparing various way to check if a string is within the values of a typescript enum (version: 0)
Given this typescript code
// typescript like
enum Status {
A = 'a',
B = 'b',
C = 'c',
D = 'd'
}
what is the faster simpler way to know if a string st is within the enum values.
Comparing performance of: compare individual strings vs use a regex vs use a set