Is there a javascript function that can pad a string to get to a determined length?
- by Anthony Potts
I am in need of a javascript function which can take a value and pad it to a given length (I need spaces, but anything would do). I found this:
http://jsfromhell.com/string/pad
But I have no idea what the heck it is doing and it doesn't seem to work for me.