svelte-form/rule/exclude

Svelte Form validation rules module.

Source:

(require("svelte-form/rule/exclude"))(msg, arg) → {boolean|string}

Source:

Max rule

Parameters:
Name Type Description
msg string

error message.

arg Array.<number> | Array.<string>

exclusion list.

Returns:

true when valid, error message otherwise.

Type
boolean | string