forked from M3-Academy/challenge-algorithms-v2.0
5 lines
190 B
JavaScript
5 lines
190 B
JavaScript
export function longestWords(words) {
|
|
// implementar logica aqui
|
|
let maxWord = Math.max(...words.map( elem => elem.length))
|
|
return words.filter(elem => elem.length === maxWord)
|
|
} |