I came across 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 the map for example and I would like that in my new array I would 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)?