Checks whether provided parameter looks like a valid e-mail address
- val (string) - the string to check
- returns (boolean) valid -
true
ifval
is a valid e-mail address,false
otherwise
const isEmail = require('nice-is-email')
isEmail('foo@bar.com') // true
isEmail('@bar') // false