The Google Sheets editor script seems to be a variant of JavaScript, but I cannot figure out how to use it to handle sets, dictionaries, etc. I already know how to use JS arrays , but arrays are not enough for my task .
Declaring a set through the usual way (i.e. var categoryOptions = new Set(String);gives me the error "Install Undefined".
Using var categoryOptions = {};does not allow me to use any of the built-in Set functions, such as add. Instead, I get: "TypeError: cannot find the add function in the [object Object]".
Any professional advice?
source
share