email

Creates a validation functions that validates a email.

const validate = email(error);

Parameter

  • error string

Return