> leftpad('foo', 4, 'bar') 'barfoo' I can see why this was so popular
-
-
Left-padding is apparently so hard that even the canonical JavaScript implementation is/was bug-riddled
-
Never roll your own string ops
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.