The following code returns false. What am I doing wrong?
var s = new Set([[1,2], [2,3]])
s.has([2, 3])
false
The following code returns false. What am I doing wrong?
var s = new Set([[1,2], [2,3]])
s.has([2, 3])
false
Because you can't compare objects. [2, 3] === [2, 3] gives false. So you can't find object in set.