Created
September 6, 2019 03:44
-
-
Save masautt/239d93bfab41d9f37ef33017a8fec460 to your computer and use it in GitHub Desktop.
How to remove vowels from string in JavaScript
This file contains hidden or 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
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