📅  最后修改于: 2022-03-11 14:48:37.752000             🧑  作者: Mango
代码示例2
const vowelsRegex: RegExp = /[aeiou]/i;
function startsWithVowel(word:string){
return !!word.charAt(0).match(vowelsRegex);
}