2022-10-27 15:07:13 +00:00
|
|
|
export function longestWords(words) {
|
|
|
|
// implementar logica aqui
|
2022-10-28 11:57:42 +00:00
|
|
|
let maxWord = Math.max(...words.map( elem => elem.length))
|
|
|
|
return words.filter(elem => elem.length === maxWord)
|
2022-10-27 15:07:13 +00:00
|
|
|
}
|