Files
30-seconds-of-code/test/countVowels/countVowels.js

1 line
76 B
JavaScript

module.exports = countVowels = str => (str.match(/[aeiou]/gi) || []).length;