Solución
solution.tsTypeScript
function invertirObjeto(obj: Record<string, string>): Record<string, string> {
const entries = Object.entries(obj)
const resp: Record<string, string> = {}
entries.map( entrie => {
resp[entrie[1]] = entrie[0]
})
return resp;
}
// No modificar: necesario para evaluar el resultado.
export { invertirObjeto };0respuestas