Javascript String padLeft(pad)

Description

Javascript String padLeft(pad)


String.prototype.padLeft = function(pad) {
  return pad.substring(0, pad.length - this.length) + this;
}



PreviousNext

Related