I have one array from req.body. I need to loop through and fetch the value like(quantity_1 as one separate data and quantity_2 as separate data) How to fetch like this and My Array from req.body is:
{ quantity_1: '9', item_name_1: 'Event Cap Nike', amount_1: '599', shipping_1: 'undefined', shipping2_1: 'undefined', quantity_2: '1', item_name_2: 'Plaza', amount_2: '1000', shipping_2: 'undefined', shipping2_2: 'undefined', cmd: '_cart', upload: '1', bn: 'MiniCart_AddToCart_WPS_US', business: ' ', currency_code: 'INR', return: ' ', cancel_return: ' ' }