title: Sets and data structures in Google Apps Script
body: <p>Google Sheets's script editor seems to be a variant of JavaScript, but I can't figure out how to use it to handle Sets, dictionaries, etc. I already know how to use JS Arrays, <strong>but Arrays are not sufficient for my task</strong>.</p>
  
  <p>Declaring a Set through the normal way (i.e. <code>var categoryOptions = new Set(String);</code> gives me a 'Set is not defined' error. </p>
  
  <p>Using <code>var categoryOptions = {};</code> does not allow me to use any built-in Set functions, such as <code>add</code>. Instead, I get: "TypeError: Cannot find function add in object [object Object]." </p>
  
  <p>Any pro tips?</p>