Nodejs Utililty Methods String Padding Left

List of utility methods to do String Padding Left

Description

The list of methods to do String Padding Left are organized into topic(s).

Method

leftPad(l, c)
String.prototype.leftPad = function (l, c) { 
  return new Array(l - this.length + 1).join(c || ' ') + this;