I am actually stuck on something. As the title above tells you. I need helps on how to get the result for this.
Below is the code
let Array = [{
reference: "A0002",
sendTo: "USA",
item: "sticker",
sku: 0921380,
quantity: 1
},
{
reference: "A0002",
sendTo: "USA",
item: "toy",
sku: 0921381,
quantity: 2
}, {
reference: "A0002",
item: "pencil",
sku: 0921382,
quantity: 2
},
{
reference: "A0003",
item: "sticker",
sendTo: "USA",
sku: 0921380,
quantity: 2
}]
console.log(Array)
Result I would want when HTML is applied is:
reference: A0002
sendTo: USA
item: sticker, toy, pencil
sku: 0921380, 0921381, 0921382
quantity: 1, 2 ,2
reference: A0003
item: sticker
sendTo: USA
sku: 0921380
quantity: 2
However, I need to make it appear inside a HTML Table