validateSilent
validateSilent([value])
Effect
The silent version of validate
. validateSilent
will not throw any error when validate failed. It will always return the error
and value
.
Arguments
[value]
(*) - The value to detect, default isundefined
.
Returns
Always return an object as below:
Field | Necessary | Description |
error | N | The error object when validating failed. If validate passed, the field is |
value | Y | When validating passed, value is the same as the return value of Otherwise, value is the original detected value. |
Example
Last updated