title: How to use the Dictionary javascript class in Google Apps Script?
body: <p>I am trying to make and use a Dictionary object in Google Apps Script. Before, I used a very long switch statement for my script the first time around, and when I submitted it to the Gallery, the person who approved it asked why I didn't use a Javascript Dictionary object instead. I looked into how to use Dictionary objects, but now my script wont' work because Google Apps Script doesn't understand the command:</p>
  
  <pre><code>Components.utils.import("resource://gre/modules/Dict.jsm");
  </code></pre>
  
  <p>This 'import' line of code was copied straight from this Javascript Reference webpage:
  <a href="http://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Dict.jsm" rel="nofollow">http://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Dict.jsm</a></p>
  
  <p>How do I include this javascript library needed to make it work, or what is the Google Apps Script alternative to a javascript Dictionary object?</p>