some
validator. The some
validator 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.some
validator 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 validationsome
validator adds a some
property 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 some
to match the name of the validator (this is a common pattern in Strickland).max
validator added the max: 5
property to the resultmin
validator added the min: 10
property to the resultcompare
validator was not executedcompare
validator are not included on the resultsome
array in the result does not include an item for the compare
validatorisValid
prop on the result reflects the overall validation result