Javascript String equals(str)

Description

Javascript String equals(str)


String.prototype.equals = function(str){
 return this.trim().toLowerCase() == str.trim().toLowerCase();
}

Javascript String equals(str)

String.prototype.equals = function(str) {
    return this === str;
};



PreviousNext

Related