Entrega do Desafio #1

Merged
anacarolinaduartecavalcante merged 12 commits from feature/10-longestWords into master 2022-10-28 12:14:06 +00:00
Showing only changes of commit c9a298d9cd - Show all commits

View File

@ -1,4 +1,5 @@
export function longestWords(words) {
// implementar logica aqui
let maxWord = Math.max(...words.map( elem => elem.length))
return words.filter(elem => elem.length === maxWord)
}