Version: v0.5.0 - Beta.  We welcome contributors & feedback.  THanks!

String.padLeft

padLeft(length, padString = ' ')

Description

Expand string to length characters, by adding padString to the beginning.

'willow'.padLeft(10);       //= '    willow'
'willow'.padLeft(10, '.');  //= '....willow'

See Also