ANTON KADACH

Generation

translateTue, 17 Jan 2023

const getParcelPickups = (parcels) => { return Promise.all( parcels.map((parcel) => { const [warehouse] = cacheContainer.warehousesByMerchantId.get(Number(parcel.merchantId)) || []; const pickupRegion = cacheContainer.pickupRegionsByGeoId.get(warehouse.geoId); return getPickupFromParcel({ warehouse, pickupRegion }); })) };

func add(a, b int) int { return a + b }

Questions about programming?Chat with your personal AI assistant