Here you can find the source of lpad(padString, length)
String.prototype.lpad = function(padString, length) { var str = this; while (str.length < length) { str = padString + str;/*from w ww . j a v a 2 s .c om*/ } return str; };
String.prototype.lpad = function(padLength, padString){ var s = this; while(s.length < padLength) s = padString + s; return s;
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;
"use strict"; 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;