pattern
Creates a validation functions that validates the pattern of a string.
const validate = pattern(requirement, error);
Parameters
requirement
RegExp
error
string
Return
validate
(value:
MaybeValue<
) =>string
>string
Creates a validation functions that validates the pattern of a string.
const validate = pattern(requirement, error);
requirement
RegExp
error
string
validate
(value: MaybeValue<string
>
) => string