forked from M3-Academy/challenge-algorithms-v2.0
6 lines
182 B
JavaScript
6 lines
182 B
JavaScript
export function longestWords(words) {
|
|
// implementar logica aqui
|
|
let maxLength = Math.max(...words.map((e) => e.length));
|
|
return words.filter((e) => e.length === maxLength);
|
|
}
|