feat: solucao longestWords #12

Merged
Rafael_Sampaio_de_Oliveira merged 1 commits from feature/solucao-longesWords into development 2022-10-28 19:55:16 +00:00

View File

@ -1,4 +1,5 @@
export function longestWords(words) {
// implementar logica aqui
}
// implementar logica aqui
let maxLength = Math.max(...words.map((e) => e.length));
return words.filter((e) => e.length === maxLength);
}