Constructor
# new TinValidator(errorMessage)
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
errorMessage |
string
|
That is not a valid Tin |
Methods
# hasErrors(value) → {string|undefined}
returns the error message, or nothing if is valid
.returns the error message, or nothing if is valid
Parameters:
| Name | Type | Description |
|---|---|---|
value |
the value |
the errors or nothing
string
|
undefined