Created
July 12, 2017 10:25
-
-
Save lethalbrains/eaefccec40c98e3150b8ad3f04384eea 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'.padStart(5, 'xy') | |
'xyxya' | |
> 'a'.padStart(4, 'xy') | |
'xyxa' | |
> '1234'.padStart(2, '#') | |
'1234' | |
> '###'.padStart(10, '0123456789') | |
'0123456###' | |
> 'a'.padStart(10) | |
' a' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment