Const
Asserts that the intersection of two Sets equals a third Set.
expect( new Set([1, 2, 3]), 'to have intersection', new Set([2, 3, 4]), 'equal to', new Set([2, 3]),); // passes Copy
expect( new Set([1, 2, 3]), 'to have intersection', new Set([2, 3, 4]), 'equal to', new Set([2, 3]),); // passes
set-intersection-with-set-to-equal-set
collections
Asserts that the intersection of two Sets equals a third Set.