Created
July 24, 2018 14:29
-
-
Save Bamblehorse/a5ecd715e39106af36cd4574592427fb to your computer and use it in GitHub Desktop.
The export for my tiny npm module
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 tiny(string) { | |
if (typeof string !== "string") throw new TypeError("Tiny wants a string!"); | |
return string.replace(/\s/g, ""); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment