Created
July 12, 2017 10:31
-
-
Save lethalbrains/2a98913f69af6a80ba2f9fbc5ec2fdca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 'a'.padEnd(5, 'xy') | |
'axyxy' | |
> 'a'.padEnd(4, 'xy') | |
'axyx' | |
> '1234'.padEnd(2, '#') | |
'1234' | |
> '###'.padEnd(10, '0123456789') | |
'###0123456' | |
> 'a'.padEnd(10) | |
'a ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment