Eight.String.padRight

Pads a string on the right with the given character by the given count.

Example

var formattedStr = Eight.String.padRight("1", "0", 2);

// formattedStr now equals "100"

Last edited Feb 2, 2013 at 4:32 PM by gotdibbs, version 1

Comments

No comments yet.