Skip to content

isEmail

isEmail(dataValue) ⇒ boolean

Check if value is Email

Kind: global function

ParamTypeDescription
dataValuestringinput value

Example

js
import isEmail from '@hiperf/validate/isEmail';

isEmail('John'); // false
isEmail('John@example.com'); // true