code: function rpad(str, width) {
      str = String(str);
      var n = width - str.length;
      if (n < 1) return str;
      while (n--) str = str + ' ';
      return str;
  }
docs: Pad the given string to the maximum width provided.
  
  @param  {String} str
  @param  {Number} width
  @return {String}