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