Javascript String isUpper()

Description

Javascript String isUpper()


//PROTOTYPES//from  ww w. jav a 2 s  .c o m
String.prototype.isUpper = function () {
    var char = this[0];
    var rtn = false;
    if (char == char.toUpperCase()) rtn = true;
    return rtn;
}

Javascript String isUpper()

String.prototype.isUpper = function () {
 return this.toUpperCase() == this;
}



PreviousNext

Related