Glossary Term
Set.prototype.intersection()
The intersection() method of Set instances takes a set and returns a new set containing elements in both this set and the given set.
A∩B={x∊A∣x∊B}Acap B = \{xin Amid xin B\}
!A Venn diagram where two circles overlap. The intersection of A and B is the part where they overlap.
intersection() accepts set-like objects as the other parameter. It requires this to be an actual Set instance, because it directly retrieves the underlying data stored in this without invoking any user code. Then, its behavior depends on the sizes of this and other:
Syntax example: intersection(other)
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
