Skip to content

Instantly share code, notes, and snippets.

@navidanindya
Created June 9, 2018 09:12
Show Gist options
  • Save navidanindya/672c0e53d77b108ad8eba9f078f1a7b7 to your computer and use it in GitHub Desktop.
Save navidanindya/672c0e53d77b108ad8eba9f078f1a7b7 to your computer and use it in GitHub Desktop.
Strip vowels from a string using JavaScript. [ Link: https://repl.it/@nealtheguitaris/TightLawngreenTrapezoid ]
function disemvowel(str) {
return str.replace(/[aeiou]/ig,'');
}
console.log(disemvowel("Hello World!"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment