Checks if a given value is a valid value of the specified enum type.
This utility function verifies whether a provided value exists within the values of a given enumeration, ensuring type safety and correctness.
The value to validate against the enum.
The enum object to check the value against.
true if the value exists within the enum, otherwise false.
true
false
Checks if a given value is a valid value of the specified enum type.
This utility function verifies whether a provided value exists within the values of a given enumeration, ensuring type safety and correctness.