Solución
solution.tsTypeScript
function camelToSnake(text: string): string {
let snakeText = '';
for(let i = 0; i<text.length; i++){
if(text[i] >= 'A' && text[i] <= 'Z'){
snakeText += '_';
}
snakeText += text[i].toLowerCase();
}
return snakeText;
}
// No modificar: necesario para evaluar el resultado.
export { camelToSnake };1respuestas