index.js
function lpad (str, width) {
  while (String(str).length < width) {
    str = ' ' + str
  }
  return str
}
function lpad (str, width) {
  while (String(str).length < width) {
    str = ' ' + str
  }
  return str
}
function lpad ( str , width ) { while ( String ( str ) . length < width ) { str = ' ' + str } return str }
Left-pad utility.

@param {string} str String to pad
@param {number} width Total desired width of string
@return {string}
Left - pad utility .