src/core/js2-lexer.js
function(stuff) {
      var len = this.str.length;
      if (typeof stuff == 'number') {
        this.str = this.str.substr(stuff);
      } else if (typeof stuff == 'string') {
        this.str = this.str.substr(stuff.length);
      } else if (stuff instanceof RegExp) {
        var m = this.str.match(stuff);
        if (m) {
          this.str = this.str.substr(m[0].length);
        }
      }
      return len > this.str.length;
    }
function(stuff) {
      var len = this.str.length;
      if (typeof stuff == 'number') {
        this.str = this.str.substr(stuff);
      } else if (typeof stuff == 'string') {
        this.str = this.str.substr(stuff.length);
      } else if (stuff instanceof RegExp) {
        var m = this.str.match(stuff);
        if (m) {
          this.str = this.str.substr(m[0].length);
        }
      }
      return len > this.str.length;
    }
function ( stuff ) { var len = this . str . length ; if ( typeof stuff == 'number' ) { this . str = this . str . substr ( stuff ) ; } else if ( typeof stuff == 'string' ) { this . str = this . str . substr ( stuff . length ) ; } else if ( stuff instanceof RegExp ) { var m = this . str . match ( stuff ) ; if ( m ) { this . str = this . str . substr ( m [ 0 ] . length ) ; } } return len > this . str . length ; }
stuff can be string, integer, or regex will return true if it actually made the string smaller
stuff can be string integer or regex will return true if it actually made the string smaller