Removes the vowels from a name

PHOTO EMBED

Sat May 01 2021 01:49:08 GMT+0000 (Coordinated Universal Time)

Saved by @admariner #javascript

/**
 * Removes the vowels from a name.
 *
 * @param {string} name The name of the domain.
 * @return The name with the vowels removed.
 * @customfunction
 */
function REMOVE_VOWELS(name) {
  const vowels = ["a", "e", "i", "o", "u"];
  const letters = name.toLowerCase().split("");
  let newName = [];
  letters.map(letter => vowels.includes(letter) ? null : newName.push(letter));
  return newName.join("");
}
content_copyCOPY

https://script.gs/google-sheets-custom-functions-for-wannabe-domain-investors/