Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uurtech/b474dd3cb9c3a57284531c8036650f7d to your computer and use it in GitHub Desktop.
Save uurtech/b474dd3cb9c3a57284531c8036650f7d to your computer and use it in GitHub Desktop.
String.prototype.cleaner = function(){
return this.replace(/\t|\n|\r|:|\s/g,'');
}
"ugur kazdal \t\t".cleaner();
outputs : ugurkazdal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment