goog.collections.sets
Module ID |
---|
Set operations for ES6 Sets.
See design doc at go/closure-es6-set
Exported Functions
expand_more
addAll<T>( set, col ) → void
void
expand_more
difference<T>( a, b ) → Set<(T|null)>
Set<(T|null)>
expand_more
equals<T>( set, col ) → boolean
boolean
Tests whether the given collection consists of the same elements as the given set, regardless of order, without repetition. This operation is O(n).
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|
expand_more
hasAll<T>( set, col ) → boolean
boolean
expand_more
intersection<T>( a, b ) → Set<(T|null)>
Set<(T|null)>
expand_more
isSubsetOf<T>( set, col ) → boolean
boolean
Tests whether all elements in the set are contained in the given collection. This operation is O(n).
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|
expand_more
removeAll<T>( set, col ) → void
void
expand_more
symmetricDifference<T>( a, b ) → Set<(T|null)>
Set<(T|null)>
expand_more
union<T>( a, b ) → Set<(T|null)>
Set<(T|null)>