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.

  • Parameters

    • value: any

      The value to validate against the enum.

    • enumType: object

      The enum object to check the value against.

    Returns boolean

    true if the value exists within the enum, otherwise false.