Javascript String GetEmailUsername()

Description

Javascript String GetEmailUsername()

String.prototype.GetEmailUsername = function () {
    if (this.IsEmail()) {
        return this.split('@')[0];
    }//w w w .  j  ava2 s .  com

    return false;
}



PreviousNext

Related