Created
July 25, 2019 10:32
-
-
Save jakes2255/4c2b57c1dd7e550db6124ced93088db3 to your computer and use it in GitHub Desktop.
My Custom NPM package
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
module.exports = function(string) { | |
if(typeof string !== "string") throw new TypeError("Plesae enter a string value!"); | |
return string.replace(/\s/g,""); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment