Merge pull request 'feat: solucao longestWords' (#12) from feature/solucao-longesWords into development

Reviewed-on: #12
This commit is contained in:
Rafael Sampaio de Oliveira 2022-10-28 19:55:16 +00:00
commit 5915cbc3db

View File

@ -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);
}