/** * @description Checks if a string is a valid email address. */ export const regexpIsEmail = (value: string): boolean => { const emailRegex = /^[\w.%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i return emailRegex.test(value) }