Const
Asserts that one Set is a subset of another.
expect(new Set([1, 2]), 'to be a subset of', new Set([1, 2, 3])); // passesexpect(new Set([1, 4]), 'to be a subset of', new Set([1, 2, 3])); // fails Copy
expect(new Set([1, 2]), 'to be a subset of', new Set([1, 2, 3])); // passesexpect(new Set([1, 4]), 'to be a subset of', new Set([1, 2, 3])); // fails
set-to-be-a-subset-of-set
collections
Asserts that one Set is a subset of another.