Skip to main content

Timeline for Count all vowels in string

Current License: CC BY-SA 4.0

5 events
when toggle format what by license comment
Aug 28, 2020 at 18:32 comment added morbusg I was wondering why not just vowelCount = str => str.match(/[aeiou]/ig).length?
May 24, 2019 at 0:35 vote accept Ben A
May 22, 2019 at 2:02 comment added Marc.2377 This avoids iteration altogether - well, just wanted to point out that I'm confident the replace() method does its own iterating internally. (Still, I do think your point is valid.)
May 20, 2019 at 16:40 history edited Joseph CC BY-SA 4.0
added 54 characters in body
May 20, 2019 at 16:33 history answered Joseph CC BY-SA 4.0