Created
August 2, 2019 09:22
-
-
Save kutyel/f3095c6f5a154de518d87a8c677bb66c to your computer and use it in GitHub Desktop.
String.trimStart/trimEnd()
This file contains hidden or 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
const text = " Levy " | |
text.trim() // > "Levy" | |
text.trimStart() // > "Levy " | |
text.trimEnd() // > " Levy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment