Ad
Code
Diff
  • const countVowel = s => (s.match(/[aeiou]/gi)||[]).length
      
    • const countVowel = s => s.match(/[aeiou]/gi)?.length | 0
    • const countVowel = s => (s.match(/[aeiou]/gi)||[]).length