4
I ended up facing a slightly different situation and I was in doubt.
I would like to know the following, I have an array of objects and in each object I have two attributes in it {valor: "texto", tamanho: "médio" }
.
I would like to create a new array using map for example and I would like that in my new array I change the name of the attribute size to measure.
How do I create this new array but instead of the attributes of each object being (value and size) they are (value and measure) ?
Put the code of what you’ve already done, so we can help you better.
– WMomesso
How do I put the code here ? in the comment it did not let pq exceeded the amount of characters.
– Caio Morceli
Use the edit button. Also, select the code and click the button that has a key opening and a closing to format the code.
– Pablo Almeida