Solución
solution.tsTypeScript
function toLowerCase(str: string): string {
let min= []
for (const c of str){
let code = c.charCodeAt(0)
if (code >= 65 && code <= 90) {
code += 32
}
min.push(String.fromCharCode(code))
}
return min.join('');
}
// No modificar: necesario para evaluar el resultado.
export { toLowerCase };0respuestas