Created
July 14, 2017 02:24
-
-
Save charpeni/7f87f2767d4901ef9625e4d32df9339c to your computer and use it in GitHub Desktop.
ES8 padEnd
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
'abc'.padEnd(10); // "abc " | |
'abc'.padEnd(10, "foo"); // "abcfoofoof" | |
'abc'.padEnd(6, "123456"); // "abc123" | |
'abc'.padEnd(1); // "abc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment