10-resolvido

This commit is contained in:
Emilly Schuenck de Lima 2022-11-02 10:31:41 -03:00
parent 36f3cec58a
commit 9d6abdd1be

View File

@ -7,7 +7,4 @@ export function longestWords(words) {
maior = string; maior = string;
} }
} }
const maiores = words.filter((string) => string.length == maior.length);
return maiores
} }