let meuArray = [
{codigo: 1, nome: Jose, idade: 33}
,{codigo: 2, nome: Jose, idade: 32}
,{codigo: 3, nome: Maria, idade: 31}
,{codigo: 4, nome: Joao, idade: 30}
,{codigo: 5, nome: Aroldo, idade: 29}
,{codigo: 6, nome: Aristide, idade: 28}
,{codigo: 7, nome: Aline, idade: 27}
,{codigo: 8, nome: Amelia, idade: 26}
,{codigo: 9, nome: Milena, idade: 25}
,{codigo: 10, nome: Andrea, idade: 24}
]
I have this array of objects (Obvious that in a real example, they are at least 10,000 records). I would reorganize not the rows of the array, but the attributes of the objects. Type: Place Age as First, Code as last. Ex: {age: 24, name: Andrea, code: 10}.
Any ideas? of traditional forms (using for), gets much, much slower.