Jump to content

Count how many vowels and consonants occur in a string: Difference between revisions

m
→‎JS :: Count of "Vowels and Consonants" ?: Preferred Array.from to String.split
m (→‎JS :: Count of "Vowels and Consonants" ?: Preferred Array.from to String.split)
Line 354:
// countOfVowelsAndConsonants :: String -> Int
const countOfVowelsAndConsonants = s =>
sArray.splitfrom(""s).filter(isAlpha).length;
 
 
9,655

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.