code: function lpad (str, width) {
    while (String(str).length < width) {
      str = ' ' + str
    }
    return str
  }
docs: Left-pad utility.
  
  @param {string} str String to pad
  @param {number} width Total desired width of string
  @return {string}