Function matchEnum

  • Parameters

    • fieldValue: string

      Value to be validated

    • enumObject: Record<string, string>

      Enumerable with possible values

    • fieldName: string

      Form Field where error happened

    Returns boolean

    Throws

    Throws Exception when invalid

Generated using TypeDoc