development #11

Merged
NicollyVieira merged 20 commits from development into master 2022-10-28 18:16:57 +00:00
Showing only changes of commit 57dde50631 - Show all commits

View File

@ -1,4 +1,12 @@
export function longestWords(words) {
// implementar logica aqui
let numeroDeCaractere = 0
words.forEach((word) => {
if (word.length >= numeroDeCaractere) {
numeroDeCaractere = word.length
}
})
return words.filter((palavra) => (palavra.length == numeroDeCaractere))
}