I have defined this TypeScript enum
export enum Example {
A = "first",
B = "second",
C = "third",
}
Now in my application I need to check if a paramater matches one of the enum values?
if (exampleParamater) {
// Do something
}
I have defined this TypeScript enum
export enum Example {
A = "first",
B = "second",
C = "third",
}
Now in my application I need to check if a paramater matches one of the enum values?
if (exampleParamater) {
// Do something
}