Class String.leftPad
Package: | String |
Defined In: |
String.js.
|
Class: | leftPad |
Pads the left side of a string with a specified character. This is especially useful
for normalizing number and date strings. Example usage:
var s = String.leftPad('123', 5, '0');
// s now contains the string: '00123'
Config Options - Has None
Public Properties - Has None
Public Methods - Has None