humbertoferro #1

Merged
Humberto.Ferro merged 9 commits from humbertoferro into master 2022-10-31 21:34:30 +00:00
Showing only changes of commit cfdec8e85d - Show all commits

View File

@ -1,4 +1,14 @@
export function longestWords(words) {
// implementar logica aqui
let newArr = [];
let long = 0;
words.forEach(function(element){
if(element.length > long){
long = element.length
}
});
newArr = words.filter(element =>
element.length == long
);
return newArr;
}