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