title: How to map and store countries and currencies in JavaScript Array
body: <p>I have three different currencies and each currency is mapped to multiple countries. The third currency(EUR) is mapped to several countries. How can I structure my data in a javascript array to easily get the corresponding currency code by country. I have the following data, what is the best way to structure to easily access it with country code.</p>
  
  <pre><code>USD - en-US,es-MX
  GBP - en-GB
  EUR - de-AT,nl-BE,el-CY,et-EE,fi-FI,fr-FR,de-DE,el-GR,en-IE
  </code></pre>