Created
November 5, 2018 00:34
-
-
Save adamcrampton/34c0d91f0affc79f83314ed6621a8688 to your computer and use it in GitHub Desktop.
Replace spaces with hyphens
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
someString = someString.replace(/\s+/g, '-'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment