Javascript String contains(txt)

Description

Javascript String contains(txt)

String.prototype.contains = function(txt)
{
    return (this.indexOf(txt) >= 0);
}



PreviousNext

Related