2
I got a problem, I got a problem Array that returns me another Array with this group of objects inside:
let array = [
{description: "Auto", amount: 15000, date: "17/02/2021"},
{description: "Auto 2", amount: 12000, date: "17/02/2021"}
]
But this is done with a forEach
in this way:
let array = []
newArray.forEach((transaction, index)=> {
array.push(AutoTransations.Convert(transaction, index))
})
return array
I was wondering if there’s a way to just pass the objects, not as a Array, so I would treat as an object not needing to make another forEach
to get out of this New Array.
Place a sample of the
newArray
and explains what theAutoTransations.Convert()
ago.– Augusto Vasques