The type of elements in the input sets.
The first set.
The second set.
A new Set containing the symmetric difference between the input sets.
const setA = new Set([1, 2, 3]);
const setB = new Set([2, 3, 4]);
setSymmetricDifference(setA, setB);
//=> Set([1, 4])
Generated using TypeDoc
Calculates the symmetric difference between two sets. The symmetric difference of two sets is the set of elements that are in either of the sets, but not in their intersection.