Global.String.prototype.repeat (multiplier)
function repeats a string passed as argument

  • Parameter Int:
    amount of repetitions
  • Returns
    String resulting string
Sourcecode in /home/hannes/helma/modules/core/String.js:
449:   String.prototype.repeat = function(multiplier) {
450:       res.push();
451:       for (var i=0; i<multiplier; i++)
452:           res.write(this);
453:       return res.pop();
454:   }