Beginnt Wort mit Vokaltypscript?
const vowelsRegex: RegExp = /[aeiou]/i;
function startsWithVowel(word:string){
return !!word.charAt(0).match(vowelsRegex);
}
Scary Swan
const vowelsRegex: RegExp = /[aeiou]/i;
function startsWithVowel(word:string){
return !!word.charAt(0).match(vowelsRegex);
}
const vowelsRegex: RegExp = /[aeiou]/i;
function startsWithVowel(word: string) {
return !!(word.charAt(0).match(vowelsRegex));
}