arrayElementsvalidator to apply a validator against all elements within an array. The
arrayElementsvalidator first validates that the value is an
Array.isArray), and then it validates all elements of that array using the supplied validator.
arrayElementsvalidator factory is validator that will be used to validate each element of the value array. Validator props can also be supplied either as an object or as a function that accepts context and returns a validator props object.
arrayElements: The array of validation results produced during validation
arrayElementsvalidator adds an
arrayElementsproperty to the validation result with the validation results of every array element that was validated. The validation result property is named
arrayElementsto match the name of the validator (this is a common pattern in Strickland).