Remove the Last Vowel

Published by Matt in

Write a function that removes the last vowel in each word in a sentence.

Examples

removeLastVowel("Those who dare to fail miserably can achieve greatly.")
➞ "Thos wh dar t fal miserbly cn achiev gretly."

removeLastVowel("Love is a serious mental disease.")
➞ "Lov s  serios mentl diseas"

removeLastVowel("Get busy living or get busy dying.")
➞ "Gt bsy livng r gt bsy dyng"

Notes

Vowels are: a, e, i, o, u (both upper and lowercase).

Watch a quick demo on how Edabit works.