Methods
-
getHint() → {*}
-
Returns a hint that describes the validator rule.
- Source:
Returns:
a hint string or null- Type
- *
-
Init()
-
Initializes validator instance with the set options
- Source:
-
validate(value) → {*}
-
Vaidates the value.
Parameters:
Name Type Description value
Object to be validated - Source:
Throws:
Error if validation failsReturns:
a boolean true if validation passes.- Type
- *