Files
30-seconds-of-code/test/countVowels/countVowels.js
2018-01-09 06:09:49 -05:00

1 line
62 B
JavaScript

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