Function validateEntryOrArray

  • Dispatches validation of data entry to string or array validation depending on data entry type.

    Parameters

    • data: object

      The data object to test.

    • accessor: string

      A string describing the entries to access.

    • Optionalentry: ValidationEntry

      A validation entry.

    • OptionaldataName: string

      Optional name of data.

    Returns any

    True if validation passes otherwise an exception is thrown.