Solución
solution.tsTypeScript
function vowelsAtEvenIndices(text: string): number {
return [...text].filter((char, i) => i % 2 === 0 && char.match(/[aeiou]/gi)).length;
}
// No modificar: necesario para evaluar el resultado.
export { vowelsAtEvenIndices };0respuestas