I recieve a number type = 3 and have to check if it exists in this enum:
type = 3
export const MESSAGE_TYPE = { INFO: 1, SUCCESS: 2, WARNING:
According to sandersn the best way to do this would be:
Object.values(MESSAGE_TYPE).includes(type as MESSAGE_TYPE)