Created
May 31, 2019 15:04
-
-
Save wallace7souza/41919f4d6b279d535e6efadf3fe3680b to your computer and use it in GitHub Desktop.
Replace all spaces characters
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
var str = 'a b c'; | |
var replaced = str.replace(/\s/g, '+'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment