code: function pad(str, width) {
    var len = Math.max(0, width - str.length);
    return str + Array(len + 1).join(' ');
  }
docs: Pad `str` to `width`.
  
  @param {String} str
  @param {Number} width
  @return {String}
  @api private