This indexOf doesnt work anymore nowadays. There is method valueOf but seems to be doing something different. Im trying to do something like that :
var emails = [];
emails.push("sample@email");
if (emails.indexOf("sample@email") > 0) { //if this mail exists in array
//do something
}
Doesnt work this way.