Solución
solution.tsTypeScript
export function buildConfigString(pairs: [string, string][]): string {
let res = ''
for (let [clave, valor] of pairs){
res = res.length === 0 ? res + `${clave}=${valor}` : res + '\n' + `${clave}=${valor}`
}
return res
}
0respuestas