isValid
and value
properties.isValid
will be false
. If the validator returns a truthy value, then isValid
will be true
. If the validator returns an object, the truthiness of its isValid
property will be used on the result's isValid
property.value
on the validation result will always be the value that was validated.