DEV Community

loading...

Discussion on: Daily Challenge #3 - Vowel Counter

Collapse
shayaulman profile image
Shaya Ulman • Edited

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

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