DEV Community 👩‍💻👨‍💻

Discussion on: Daily Challenge #3 - Vowel Counter

Collapse
 
shayaulman profile image
Shaya Ulman • Edited on

Why not so simple as this (JS)...

const vowelsCounter = str => [...str].filter(l => 'aeiouAEIOU'.includes(l)).length;