Tweakr
    Preparing search index...

    Function replaceVowels

    • Replaces all vowels in a string with the specified replacement character.

      Parameters

      • input: string

        The string to modify.

      • replacement: string

        The character to replace vowels with.

      Returns string

      The string with vowels replaced.

      replaceVowels("Hello World", "*"); // "H*ll* W*rld"
      replaceVowels("Tweakr", "#"); // "Tw##kr"

      1.2.0