change a property of an array of objects without looping

0

Good morning, I have an array of objects with several properties and one of them is the date property that I would like to convert. But I would like to know if you have any way to do this without using a loop.

var arr = [{data: 2018/01/02, nome: 'Teste}, 
           {data: 2018/03/03, nome: ' Outro Teste},
           {data: 2019/02/29, nome: 'João'} ... ]

I need a new array, where the date property is in DD-MM-AA format and keeps all other properties unchanged. If anyone knows how to do this without needing to do one for thank you

    
asked by anonymous 21.08.2018 / 16:14

0 answers