Const
Asserts that two Sets are equal (same elements, order-independent).
expect(new Set([1, 2]), 'to equal', new Set([2, 1])); // passesexpect(new Set([1, 2]), 'to equal', new Set([1, 3])); // fails Copy
expect(new Set([1, 2]), 'to equal', new Set([2, 1])); // passesexpect(new Set([1, 2]), 'to equal', new Set([1, 3])); // fails
set-to-equal-set
collections
Asserts that two Sets are equal (same elements, order-independent).