I want to convert this:
var x = [{ order_id: 10,
product_id: 5,
product_after_price: 50 },
{ order_id: 10,
product_id: 6,
product_after_price: 50 }]
Into this:
[[10, 5, 50], [10, 6, 50]]
I tried .map() function but it just doesn't work. Any help would be appreciated, thank you!