Global.String.prototype.contains (str, fromIndex)
function returns true if a string contains the string passed as argument

  • Parameter String:
    string to search for
  • Parameter Int:
    Position to start search
  • Parameter Boolean:
Sourcecode in /home/hannes/helma/modules/core/String.js:
527:   String.prototype.contains = function(str, fromIndex) {
528:       if (this.indexOf(str, fromIndex ? fromIndex : 0) > -1)
529:           return true;
530:       return false;
531:   }