Javascript String containIgnoreCase(otherStr)

Description

Javascript String containIgnoreCase(otherStr)

String.prototype.containIgnoreCase = function (otherStr) {
    return this.toLowerCase().indexOf(otherStr.toLowerCase());
}



PreviousNext

Related