I've take a look for some answers about this but any worked here.
I have this object:
[ { transactionId: 'oapcfgajnasdasddmamdgogjilkjga.AO-J1Oyho4K_fgrzggggggasdasdasdykGfBYG4',
orderId: undefined,
productId: 'casdasd',
purchaseDate: 1asd4831asdasd2080asd5241,
quantity: 1,
expirationDate: '14asdggg8g1' } ]
I need to delete the orderId parameter. I tried this two options of code but did not work.
one:
var index = productsList.indexOf("orderId");
productsList.splice(index, 1);
two:
for(var i=0 ; i<productsList.length; i++)
{
if(productsList[i].value=='orderId')
productsList.splice(i);
}
Any idea?