I have this array as example:
array = [{id:3},{id:2},{id:4}]
I want to loop through this array of objects, and make each "id" from each object equal to its index position inside of the array, to make something like this:
array =[{id:0},{id:1},{id:2}]
Any idea of how can I do this?
Thank you all for the attention!