lib/format.js
function repeat(str, amount) {
  var s = ''
    , i;
  for(i = 0;i < amount;i++) {
    s += str;
  }
  return s;
}
function repeat(str, amount) {
  var s = ''
    , i;
  for(i = 0;i < amount;i++) {
    s += str;
  }
  return s;
}
function repeat ( str , amount ) { var s = '' , i ; for ( i = 0 ; i < amount ; i ++ ) { s += str ; } return s ; }
Repeat a string by amount.
Repeat a string by amount .