Global.String.prototype.startsWith (str, offset)
function returns true if the string starts with the string passed as argument

  • Parameter String:
    string pattern to search for
  • Returns
    Boolean true in case it matches the beginning of the string, false otherwise
Sourcecode in /home/hannes/helma/modules/core/String.js:
464:   String.prototype.startsWith = function(str, offset) {
465:       var javaObj = new java.lang.String(this);
466:       if (offset != null)
467:           return javaObj.startsWith(str, offset);
468:       return javaObj.startsWith(str);
469:   }