Function validateArray
- validateArray(
data: object,
accessor: string,
entry: ValidationEntry,
dataName?: string,
): boolean Parameters
- data: object
The data object to test.
- accessor: string
A string describing the entries to access.
- entry: ValidationEntry
Validation entry object
Optional
dataName: stringOptional name of data.
Returns boolean
True if validation passes otherwise an exception is thrown.
- data: object
Validates all array entries against potential type and expected tests.