2 lines
95 B
JavaScript
2 lines
95 B
JavaScript
const countVowels = str => (str.match(/[aeiou]/gi) || []).length;
|
|
module.exports = countVowels; |