email

Creates a validation functions that validates a email.

const validate = email(error);

Parameter

  • error string

Return

  • validate QRL<(value: MaybeValue<string>) => string>