Const
Asserts that two Sets intersect (have common elements).
expect(new Set([1, 2]), 'to intersect with', new Set([2, 3])); // passesexpect(new Set([1, 2]), 'to intersect with', new Set([3, 4])); // fails Copy
expect(new Set([1, 2]), 'to intersect with', new Set([2, 3])); // passesexpect(new Set([1, 2]), 'to intersect with', new Set([3, 4])); // fails
set-to-have-intersection-with-set-satisfying-any
collections
Asserts that two Sets intersect (have common elements).