Here you can find the source of lpad(padString, length)
"use strict";//from w w w . j ava 2 s . c o m String.prototype.lpad = function(padString, length) { let str = this; while (str.length < length) str = padString + str; return str; };
String.prototype.lpad = function(padString, length) { var str = this; while (str.length < length) str = padString + str; return str;
String.prototype.lpad = function(padString, length) { var str = this; while (str.length < length) str = padString + str; return str;
String.prototype.lpad = function(padString, length) { var str = this; while (str.length < length) str = padString + str; return str; };
String.prototype.lpad = function(padString, length) { var str = this; while (str.length < length) { str = padString + str; return str; };
String.prototype.lpad = function(padString, length) { var str = this; while(str.length < length) str = padString + str; return str;
String.prototype.lpad = function(padString, length) { var str = this; while (str.length < length){ str = padString + str; return str;
String.prototype.lpad = function(padString, length) { var str = this; while (str.length < length) str = padString + str; return str;
String.prototype.lpad = function(pad_str, length) { var str = this; while (str.length < length) str = pad_str + str; return str;
String.repeat = function(chr, count) { var str = ""; for (var x = 0; x < count; x++) { str += chr; return str; }; String.prototype.padL = function(width, pad) { if (!width || width < 1) ...