Is there are a way to compare sets as a value in JS?
> a = new Set([1])
{}
> b = new Set([1])
{}
> a == b
false
> a === b
false
but actually I expect that these two sets are equal because they contain the same elements
Is there are a way to compare sets as a value in JS?
> a = new Set([1])
{}
> b = new Set([1])
{}
> a == b
false
> a === b
false
but actually I expect that these two sets are equal because they contain the same elements