Javascript String contains(search)

Description

Javascript String contains(search)

String.prototype.contains = function (search) {
    if (!search) {
        return false;
    }//from   www  .ja v  a2s  .  c o m

    return this.indexOf(search) != -1;
};



PreviousNext

Related