Skip to content

Instantly share code, notes, and snippets.

@masautt
Created September 6, 2019 03:44
Show Gist options
  • Save masautt/239d93bfab41d9f37ef33017a8fec460 to your computer and use it in GitHub Desktop.
Save masautt/239d93bfab41d9f37ef33017a8fec460 to your computer and use it in GitHub Desktop.
How to remove vowels from string in JavaScript
const removeVowels = (str) => {
return str.replace(/[aeiou]/gi, '');
}
//https://stackoverflow.com/questions/13829289/javascript-strip-vowels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment