Answers for "does word start with vowel typescript"

0

does word start with vowel typescript

const vowelsRegex: RegExp = /[aeiou]/i;

function startsWithVowel(word:string){
return !!word.charAt(0).match(vowelsRegex);
}
Posted by: Guest on January-11-2022
0

does word start with vowel typescript

const vowelsRegex: RegExp = /[aeiou]/i;

function startsWithVowel(word: string) {
  return !!(word.charAt(0).match(vowelsRegex));
}
Posted by: Guest on January-11-2022

Code answers related to "does word start with vowel typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language