forked from M3-Academy/challenge-algorithms-v2.0
Merge pull request 'feat: solucao longestWords' (#12) from feature/solucao-longesWords into development
Reviewed-on: #12
This commit is contained in:
commit
5915cbc3db
@ -1,4 +1,5 @@
|
||||
export function longestWords(words) {
|
||||
// implementar logica aqui
|
||||
|
||||
// implementar logica aqui
|
||||
let maxLength = Math.max(...words.map((e) => e.length));
|
||||
return words.filter((e) => e.length === maxLength);
|
||||
}
|
Loading…
Reference in New Issue
Block a user