isSupersetOf
isSupersetOf<
T>(a,b,comparisonStrategy?):boolean
Defined in: set/is-superset-of.ts:15
Checks whether every element of b is also in a.
Time complexity: O(|a| + |b|) under the default "sameValueZero".
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”Iterable<T>
The candidate superset.
Iterable<T>
The candidate subset.
comparisonStrategy?
Section titled “comparisonStrategy?”EqualityComparisonStrategy<T, T> = "sameValueZero"
The equality comparison strategy to use.
Returns
Section titled “Returns”boolean
true if a is a superset of b (every element of b is in
a).