Develop #1

Merged
Gabriel_Ferraz_Nogueira merged 10 commits from Develop into master 2022-10-31 17:37:31 +00:00
Showing only changes of commit 15b475e964 - Show all commits

View File

@ -1,4 +1,10 @@
export function longestWords(words) {
// implementar logica aqui
let longestSize = 0
let longestWord = []
words.forEach(element => {
if(element.length>longestSize)
{longestSize = element.length}})
longestWord = words.filter(element => element.length === longestSize);
return longestWord
}