forxtu
7/29/2019 - 8:29 PM

Remove vowels from string

JS Bin// source https://jsbin.com/voladow

const disemvowel = (str) => {
  const pattern = /[aeiou]/gi;
  return str.replace(pattern, "");
}

console.log(disemvowel("This text, OASd will be transoformed!"))