Javascript String contains(str,startIndex)

Description

Javascript String contains(str,startIndex)


// String Contains
String.prototype.contains = function(str,startIndex) {
    return -1 !== String.prototype.indexOf.call(this,str,startIndex);
};



PreviousNext

Related