I would like to check if a set contains an array.
var x = new Set();
x.add(2);
x.has(2); //returns true, OK
x.add([3,4]);
x.has([3,4]); //returns false
I know this:
[1,2] == [1,2]; //returns false
I can compare two arrays using loop or JSON.stringify. However how to deal with it in case of arrays inside a set?
forEachmethod, see here developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…