Revert "add longestWords logic"

This reverts commit 923c138af6.
This commit is contained in:
Marcela Mathias 2022-11-02 21:44:47 -03:00
parent ff6187b0df
commit 9729792910

View File

@ -1,11 +1,4 @@
export function longestWords(words) {
let longest = "";
for (const word of words) {
if (word.length > longest.length) {
longest = word;
}
}
return words.filter((word) => word.length === longest.length);
}
// implementar logica aqui
}