Created
May 13, 2015 12:14
-
-
Save CodyKochmann/70e7498c0f30f780b1ee to your computer and use it in GitHub Desktop.
Removes all spaces from a string in javascript.
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
function remove_spaces(s){ | |
// removes spaces from a string | |
// by: Cody Kochmann | |
return(s.split(" ").join("")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment