I created arrays .push
like this
netPurchArr.push({
netPRchRAw: formatCurrency(tst),
netKurang: formatCurrency(ntKrng)
});
and result
[
{
netPRchRAw: "3,565,980",
netKurang: "958,020"
}
]
[
{
netPRchRAw: "2,348,264",
netKurang: "253,724"
}
]
can join this array be like this
[
{
netPRchRAw: "3,565,980",
netKurang: "958,020"
},
{
netPRchRAw: "2,348,264",
netKurang: "253,724"
}
]