somevalidator operates over an array of validators and it will exit as soon as it encounters a valid result. If any of the validators in the array are valid, then the overall result will be valid.
somevalidator factory is the array of validators. Validator props can also be supplied either as an object or as a function that accepts context and returns a validator props object.
some: The array of validation results produced during validation
somevalidator adds a
someproperty to the validation result that provides the detailed validation results of every validator that was validated in the array of validators. The validation result property is named
someto match the name of the validator (this is a common pattern in Strickland).
maxvalidator added the
max: 5property to the result
minvalidator added the
min: 10property to the result
comparevalidator was not executed
comparevalidator are not included on the result
somearray in the result does not include an item for the
isValidprop on the result reflects the overall validation result