From 70196f39a7f4eef4c1bc2d2503412f6a2bb1079e Mon Sep 17 00:00:00 2001 From: Emilly Date: Wed, 2 Nov 2022 12:58:16 -0300 Subject: [PATCH] 10-resolvido --- 10-longestWords/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/10-longestWords/index.js b/10-longestWords/index.js index dc8582d..d805271 100644 --- a/10-longestWords/index.js +++ b/10-longestWords/index.js @@ -7,4 +7,7 @@ export function longestWords(words) { maior = string; } } + const maiores = words.filter((string) => string.length == maior.length); + + return maiores; } \ No newline at end of file