forked from M3-Academy/challenge-algorithms-v2.0
Entrega do Desafio #1
@ -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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user