function isEmail(string: string): boolean { var matcher = /.+\@.+\..+/ return matcher.test(string) } export default isEmail