Is there a way to use arrays as values in a javascript Set?

Example:

```
s = new Set()
s.add([1,2])
s.has([1,2]) // -> false
s.add(1)
s.has(1)  // -> true

```

Presumably, the case with the array returns false because it's looking at the references and not the actual values of the arrays. Is there a way to do this operation so that `s.has([1,2])` returns `true`?