function lpad(n, width) {
  if (n.toString().length >= width) return n.toString();
  var x = "0000000000000" + n;
  return x.substr(x.length-width, width);
}
/** Prepends zeros to front of str/num to make it the desired width
 */
Prepends zeros to front of str/num to make it the desired width
Prepends zeros to front of str / num to make it the desired width
function lpad(n, width) {
  if (n.toString().length >= width) return n.toString();
  var x = "0000000000000" + n;
  return x.substr(x.length-width, width);
}
function lpad ( n , width ) { if ( n . toString ( ) . length >= width ) return n . toString ( ) ; var x = "0000000000000" + n ; return x . substr ( x . length - width , width ) ; }
Prepends zeros to front of str/num to make it the desired width
Prepends zeros to front of str / num to make it the desired width