Map through an array of product objects and to sort products in locations and quantities for each location. Create a new array with objects organized to provide quantity counts for each location the product is in. Refer to the input array attached and the required output array attached. For each product name create a new object that provides a list of the locations and respective quantities.
24 freelancers are bidding on average $115 for this job