Overview | IndexGodLikeMouse JavaScript Framework
FRAMES | NO FRAMES

GLM.String.padRight( count, padWith )

GLM.String.padRight( count, padWith )

Method for padding a string to the right with a specified char or string.

Parameters:

count - The total length of the string once padded

padWith - The string or character to pad with

Returns:

The padded string.

Example:

var s = new GLM.String("1");
var b = s.padRight(2, "0"); //returns "10"



Overview | IndexGodLikeMouse JavaScript Framework
FRAMES | NO FRAMES