Eight.String.padLeft

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

Example

var formattedStr = Eight.String.padLeft("7", "0", 2);

// formattedStr now equals "007"

Last edited Feb 2, 2013 at 3:31 PM by gotdibbs, version 2

Comments

No comments yet.