Solución
solution.tsTypeScript
export function countWordsEndingWithVowel(words: string[]): number {
const vowels = 'aeiou'
return words.filter(word =>
vowels.includes(word[word.length-1].toLowerCase())
).length;
}0respuestas
export function countWordsEndingWithVowel(words: string[]): number {
const vowels = 'aeiou'
return words.filter(word =>
vowels.includes(word[word.length-1].toLowerCase())
).length;
}Aún no hay respuestas
¡Sé el primero en responder!
Recuerda ser amable. Estás comentando la solución de otra persona. Comparte tu perspectiva de forma constructiva y respetuosa.