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