Solución
solution.tsTypeScript
function capitalizeFirstLetter(text: string): string {
const firstLetterUppercase = !text ? "" : text[0].toUpperCase();
const textArray = text.split("");
return textArray.toSpliced(0,1,firstLetterUppercase).join("") ;
}
// No modificar: necesario para evaluar el resultado.
export { capitalizeFirstLetter };0respuestas