Svelte Form validation rules module.
(require("svelte-form/rule/min"))(msg, arg) → {boolean|string}
- Source:
Min rule
Parameters:
Name | Type | Description |
---|---|---|
msg |
string | error message. |
arg |
number | min number. |
Returns:
true when valid, error message otherwise.
- Type
- boolean | string
- Source: