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