index.js
/**
* Verify if a given value is a valid email address.
*
* @public
* @since 0.1.0
* @param {!String} value - The value to be validated.
* @return {Boolean}
*
* @example
* var isEmailValid = defy.email('user@world.net');
*/
Verify if a given value is a valid email address.
Verify if a given value is a valid email address .
function email (value) {
  const [localPart] = value.split('@')
  if (localPart.length > 64) {
    return false
  }
  return emailRegEx.test(value)
}
function email ( value ) { const [ localPart ] = value . split ( '@' ) if ( localPart . length > 64 ) { return false } return emailRegEx . test ( value ) }
Verify if a given value is a valid email address.
Verify if a given value is a valid email address .
// Validate value and part lengths