jPaq Docs - String Padding

Quick Stats

Target Platforms:  PC (JScript) and the web (JavaScript)
Download Count:  853

Summary

The functions which provide the ability to remove white-space from the beginning and end of strings.

Documentation for Children

  • String.prototype.padCenter()
    Adds the character(s) in padding to the beginning and end iteratively until the string is as long as numOfChars.
  • String.prototype.padLeft()
    Adds the character(s) in padding to the left iteratively until the string is as long as numOfChars.
  • String.prototype.padRight()
    Adds the character(s) in padding to the end iteratively until the string is as long as numOfChars.