Solución
solution.tsTypeScript
function groupByLength(words: string[]): Record<number, string[]> {
// Escribe tu solución aquí
let obj:Record<number, string[]> = {};
for(let word of words){
obj[word.length] ??= [];
obj[word.length].push(word);
}
return obj;
}
// No modificar: necesario para evaluar el resultado.
export { groupByLength };
0respuestas