javascript replace vowel

Solutions on MaxInterview for javascript replace vowel by the best coders in the world

showing results for - "javascript replace vowel"
Benjamin
23 Sep 2018
1function vowel2index(str) {
2   return str.replace(/[aeiou]/ig, (m, i) => i + 1);
3}