The type of elements in the set.
The first set.
The second set.
A new set that contains all elements of the first set that are not in the second set.
new Set([1, 2, 3, 4]);;
//=> Set {1, 2, 3, 4}
new Set([3, 4, 5, 6]);;
//=> Set {3, 4, 5, 6}
setDifference(new Set([1, 2, 3, 4]), new Set([3, 4, 5, 6]));;
//=> Set {1, 2}
Generated using TypeDoc
Returns a new set that contains all elements of the first set that are not in the second set.