difference
difference<
T>(a,b,comparisonStrategy?):Iterable<T>
Defined in: set/difference.ts:14
Computes the elements in a that are not in b.
Time complexity: O(|a| + |b|) under the default "sameValueZero".
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”Iterable<T>
The iterable to subtract from.
Iterable<T>
The iterable of elements to exclude.
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 present in a but not in b.