Disemvowel Trolls

JavaScript

function disemvowel(str) {
  const regex = /[aeiou]/gi;
  str = str.replace(regex, '');

  return str;
}

Tags

  1. javascript (Private)
  2. 7-kyu (Private)
  3. codewars (Private)
  4. answer (Private)