This works if you don't care about accent marks:
const is_vowel = chr => (/[aeiou]/i).test(chr);
is_vowel('e');
//=> true
is_vowel('x');
//=> false
But it will fail with accent marks commonly found in French for example:
is_vowel('é'); //=> false
You can use String#normalize
to "split" a character: the base character followed by the accent mark.
'é'.length;
//=> 1
'é'.normalize('NFD').length;
//=> 2
'é'.normalize('NFD').split('');
//=> ["e", "́"] (the letter e followed by an accent)
Now you can get rid of the accent mark:
const is_vowel = chr => (/[aeiou]/i).test(chr.normalize('NFD').split('')[0]);
is_vowel('é');
//=> true
Credit to this fantastic answer to this question