10-resolvido

This commit is contained in:
Emilly Schuenck de Lima 2022-11-02 12:58:16 -03:00
parent 9d6abdd1be
commit 70196f39a7

View File

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