symmetricDifference
symmetricDifference<
T>(a,b,comparisonStrategy?):Iterable<T>
Defined in: set/symmetric-difference.ts:14
Computes the elements present in exactly one of a or b.
Time complexity: O(|a| + |b|) under the default "sameValueZero".
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”Iterable<T>
The first iterable.
Iterable<T>
The second iterable.
comparisonStrategy?
Section titled “comparisonStrategy?”EqualityComparisonStrategy<T, T> = "sameValueZero"
The equality comparison strategy to use.
Returns
Section titled “Returns”Iterable<T>
A Set of the elements in a or b but not both.