Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript replace vowel

function vowel2index(str) {
   return str.replace(/[aeiou]/ig, (m, i) => i + 1);
}
 
PREVIOUS NEXT
Tagged: #javascript #replace #vowel
ADD COMMENT
Topic
Name
9+5 =