title: How to design the 'for each' loop in Adobe Javascript?
body: <p>We have market information and respective zip codes associated with the market. Some markets have a single zip code associated with them and some have multiple.</p>
  <p>We should try to generate the output file with Market Name separated with zip codes with a pipe and depending on the total number of zip codes, zip codes should be comma separated,</p>
  <p><strong>Sample Data Set:</strong></p>
  <p>Market_Name | Zipcode<br />
  Visakhapatnam 23456 --Case1 Data Set<br />
  Visakhapatnam 23457<br />
  Pune 12345<br />
  Mumbai 31234<br />
  Mumbai 31235<br />
  Mumbai 31236  --Case2 Data Set<br />
  Goa 16543  --Case3 Data Set</p>
  <p><strong>Expected Output:</strong></p>
  <p>Visakhapatnam|23456, 23457<br />
  Pune|12345<br />
  Mumbai|31234, 31235, 31236<br />
  Goa|16543</p>