Solución
solution.tsTypeScript
function invertirObjeto(obj: Record<string, string>): Record<string, string> {
let newObject = Object.entries(obj).map(object => object.reverse());
return Object.fromEntries(newObject)
}
// No modificar: necesario para evaluar el resultado.
export { invertirObjeto };0respuestas