Alright, so I had some help a couple months ago with coming up with a solution to keep count of the elements in an array: Loop through multiple array and keep count of each
Remove the de-structuring.
cur.ProductHandlingTypes.map((obj) => obj.Name).forEach(...