DEV Community

loading...

Discussion on: Daily Challenge #80 - Longest Vowel Change

Collapse
dalmo profile image
Dalmo Mendonça • Edited
const longestVowelSequence = (str) => Math.max(...str.split(/[^aeiou]/).map(s => s.length))
Collapse
savagepixie profile image
SavagePixie

I like your approach!

Forem Open with the Forem app