Skip to content

Instantly share code, notes, and snippets.

Created Jul 25, 2019
What would you like to do?
My Custom NPM package
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