Answers for "vowels to uppercase javascript"

1

javascript replace vowel

function vowel2index(str) {
   return str.replace(/[aeiou]/ig, (m, i) => i + 1);
}
Posted by: Guest on February-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language