development #1

Merged
Samuel merged 10 commits from development into master 2022-10-27 21:46:47 +00:00
Showing only changes of commit 14dd2372fa - Show all commits

View File

@ -1,4 +1,12 @@
export function longestWords(words) { export function longestWords(words) {
// implementar logica aqui // implementar logica aqui
return words.reduce((acc, val, ind) => {
} if (!ind || acc[0].length < val.length) {
return [val];
}
if (acc[0].length === val.length) {
acc.push(val);
}
return acc;
}, []);
}