I am trying to create new Sets from an array but it is returning an empty object. What am I doing wrong?
const myArray = ["value1", "value2", "value3", "value1", "value2"]; const mySet = new Set(myArray); Logger.log(mySet);
new Set() returns the Set object. When you want to see the value, how about the following modification?