svelte-form/rule/include

Svelte Form validation rules module.

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

Source:

Include rule

Parameters:
Name Type Description
msg string

error message.

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

inclusion list.

Returns:

true when valid, error message otherwise.

Type
boolean | string
Source: