Check if a value exists in an enum-like object.
enum Colors { Red = 'red', Blue = 'blue' }isEnumValue(Colors, 'red'); // true Copy
enum Colors { Red = 'red', Blue = 'blue' }isEnumValue(Colors, 'red'); // true
Check if a value exists in an enum-like object.