Function validateArray

  • Validates all array entries against potential type and expected tests.

    Parameters

    • data: object

      The data object to test.

    • accessor: string

      A string describing the entries to access.

    • entry: ValidationEntry

      Validation entry object

    • OptionaldataName: string

      Optional name of data.

    Returns boolean

    True if validation passes otherwise an exception is thrown.