-1
I have an object JSON of a form, then converted normally and created a map only with the names of users within a array. The next step I need to take is to analyze all the names and get the(s) that has the biggest length.
I’ve tried to use filter and reduce, but there’s always some kind of mistake, someone could tell me which algorithm to use?
Const nomes =["Luan","Pedro","Caio", "Mariana", "Lígia", "Rafaela"]
The result should be an array with the larger(s) name(s length.
sure understood your doubt, however from which length you want to assign to this new array of names?
– OtavioCapel
If an answer solves your problem mark it as accepted. See how in https://i.stack.Imgur.com/jx7Ts.png and why in https://pt.meta.stackoverflow.com/questions/1078/como-e-por-que-aceitar-uma-resposta/1079#1079
– user60252