remove console log in isFree function
This commit is contained in:
parent
8b8ee72442
commit
7a7f4e71c8
1
index.js
1
index.js
@ -8,7 +8,6 @@ function isFree(email) {
|
|||||||
if (typeof email !== 'string') throw new TypeError('email must be a string');
|
if (typeof email !== 'string') throw new TypeError('email must be a string');
|
||||||
console.log(email);
|
console.log(email);
|
||||||
var domain = tldjs.getDomain(email.split('@').pop());
|
var domain = tldjs.getDomain(email.split('@').pop());
|
||||||
console.log(domain, free.indexOf(domain));
|
|
||||||
return free.indexOf(domain) !== -1;
|
return free.indexOf(domain) !== -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user