Compare char to other chars in javascript In my answer, I have this code:

s.match(/[AEIOU]/)


This seems too verbose to check if a string is one of A, E, I, O, or U.

I tried:

"AEIOU".includes(s)


But that's 1 byte longer. Can I do this in a shorter way?
Try /[AEIOU]/.test(s)

Body must be at least 30 characters; you entered 21